From a85d110f2859d3e44547b43d1948080c78b6d867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 19 Sep 2014 13:35:18 +0200 Subject: Support files with Windows style newlines \r\n --- text.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text.h') 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*); -- cgit v1.2.3