aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-19 13:35:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-19 13:35:18 +0200
commita85d110f2859d3e44547b43d1948080c78b6d867 (patch)
tree8f7b14e6274b4ca4afea5481a58221815ccaf0a0 /text.h
parentffa12d93c7efc516ead1dfc798f9afc0d3ec1aa1 (diff)
downloadvis-a85d110f2859d3e44547b43d1948080c78b6d867.tar.gz
vis-a85d110f2859d3e44547b43d1948080c78b6d867.tar.xz
Support files with Windows style newlines \r\n
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index 15d0ad1..773e8b6 100644
--- a/text.h
+++ b/text.h
@@ -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*);