summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/buffer.c b/buffer.c
index 6766a5a..44992bc 100644
--- a/buffer.c
+++ b/buffer.c
@@ -3185,10 +3185,8 @@ static bool buffer_write_to_file(TextBuffer *buffer, const char *path) {
}
if (i != buffer->nlines-1) {
- #if _WIN32
- if (settings->crlf_windows)
+ if (settings->crlf)
putc('\r', out);
- #endif
putc('\n', out);
}
}