diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-19 12:53:18 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-19 12:53:18 +0200 |
| commit | ffa12d93c7efc516ead1dfc798f9afc0d3ec1aa1 (patch) | |
| tree | 574635d1ed446def3fc894379eef036494f42964 /vis.c | |
| parent | f212b9d4952c87052e23b5161195917410b7c911 (diff) | |
| download | vis-ffa12d93c7efc516ead1dfc798f9afc0d3ec1aa1.tar.gz vis-ffa12d93c7efc516ead1dfc798f9afc0d3ec1aa1.tar.xz | |
Windows style newlines are actually \r\n not \n\r
This is fiddely stuff, hopefully it doesn't break too much
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -339,7 +339,7 @@ static void mark_set(const Arg *arg); static void insert(const Arg *arg); /* insert a tab or the needed amount of spaces at the current cursor position */ static void insert_tab(const Arg *arg); -/* inserts a newline (either \n or \n\r depending on file type) */ +/* inserts a newline (either \n or \r\n depending on file type) */ static void insert_newline(const Arg *arg); /* add a new line either before or after the one where the cursor currently is */ static void openline(const Arg *arg); @@ -848,7 +848,7 @@ static void insert_tab(const Arg *arg) { } static void insert_newline(const Arg *arg) { - // TODO determine file type to insert \n\r or \n + // TODO determine file type to insert \r\n or \n insert(&(const Arg){ .s = "\n" }); } |
