diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-19 13:35:18 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-19 13:35:18 +0200 |
| commit | a85d110f2859d3e44547b43d1948080c78b6d867 (patch) | |
| tree | 8f7b14e6274b4ca4afea5481a58221815ccaf0a0 /text.h | |
| parent | ffa12d93c7efc516ead1dfc798f9afc0d3ec1aa1 (diff) | |
| download | vis-a85d110f2859d3e44547b43d1948080c78b6d867.tar.gz vis-a85d110f2859d3e44547b43d1948080c78b6d867.tar.xz | |
Support files with Windows style newlines \r\n
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -76,6 +76,8 @@ void text_mark_clear_all(Text*); size_t text_size(Text*); bool text_modified(Text*); +/* test whether the underlying file uses UNIX style \n or Windows style \r\n newlines */ +bool text_newlines_crnl(Text*); int text_save(Text*, const char *file); void text_free(Text*); |
