summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-19 09:47:57 -0400
committerpommicket <pommicket@gmail.com>2023-10-19 09:47:57 -0400
commit30f37caf7d9facf7698d01ef77d7da93e7316103 (patch)
treeac49bf6d922766a3613651dec9783099c87930bc /buffer.c
parent0dc4d4db3a91faa799187fd321fcae82b12f9b66 (diff)
basic editorconfig implementation
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);
}
}