Skip to content

Commit

Permalink
Save file using original line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Apr 30, 2024
1 parent 0fa09ab commit 695b82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl EditorTab {
editor.with_buffer(|buffer| {
for line in buffer.lines.iter() {
text.push_str(line.text());
text.push('\n');
text.push_str(line.ending().as_str());
}
});
match fs::write(path, text) {
Expand Down

0 comments on commit 695b82a

Please sign in to comment.