Save file using original line endings
This commit is contained in:
parent
0fa09ab57b
commit
695b82a53d
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ impl EditorTab {
|
||||||
editor.with_buffer(|buffer| {
|
editor.with_buffer(|buffer| {
|
||||||
for line in buffer.lines.iter() {
|
for line in buffer.lines.iter() {
|
||||||
text.push_str(line.text());
|
text.push_str(line.text());
|
||||||
text.push('\n');
|
text.push_str(line.ending().as_str());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
match fs::write(path, text) {
|
match fs::write(path, text) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue