summaryrefslogtreecommitdiffstats
path: root/src/marks.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2022-10-29 22:22:44 +0200
committerqkzk <qu3nt1n@gmail.com>2022-10-29 22:22:44 +0200
commit45e9f45daa5f7718b29aa77ab51bde7d258ee507 (patch)
tree7499ceec90ba05ca1f7c3fa1c38d2d77eb0a9107 /src/marks.rs
parent8434574f352482454575136b9cbcc0e0a1aca790 (diff)
fix marks saved without new lines.
Diffstat (limited to 'src/marks.rs')
-rw-r--r--src/marks.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/marks.rs b/src/marks.rs
index 7a079ad..74716d5 100644
--- a/src/marks.rs
+++ b/src/marks.rs
@@ -65,7 +65,7 @@ impl Marks {
let mut buf = BufWriter::new(file);
for (ch, path) in self.marks.iter() {
- let _ = write!(buf, "{}:{}", ch, Self::path_as_string(path)?);
+ let _ = writeln!(buf, "{}:{}", ch, Self::path_as_string(path)?);
}
Ok(())
}