diff --git a/helix-loader/src/persistence.rs b/helix-loader/src/persistence.rs index 9cc5a516b..f2f939501 100644 --- a/helix-loader/src/persistence.rs +++ b/helix-loader/src/persistence.rs @@ -10,6 +10,7 @@ pub fn write_history(filepath: PathBuf, entries: &Vec) { let file = OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(filepath) // TODO: do something about this unwrap .unwrap();