aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-08 22:11:57 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-09 11:28:06 +0200
commit4f15fee811d2645bf810a475d4272f83c30608d6 (patch)
treee61902723c42378b78b43e42bf55f37ec216d702 /text.h
parent6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00 (diff)
downloadvis-4f15fee811d2645bf810a475d4272f83c30608d6.tar.gz
vis-4f15fee811d2645bf810a475d4272f83c30608d6.tar.xz
vis: remove handling of \r\n line endings
Use something like dos2unix(1) and unix2dos(1), if you need to edit such files.
Diffstat (limited to 'text.h')
-rw-r--r--text.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/text.h b/text.h
index da97a5d..deb39c3 100644
--- a/text.h
+++ b/text.h
@@ -121,15 +121,6 @@ bool text_modified(Text*);
* this text instance */
bool text_sigbus(Text*, const char *addr);
-/* which type of new lines does the text use? */
-enum TextNewLine {
- TEXT_NEWLINE_LF = 1,
- TEXT_NEWLINE_CRLF,
-};
-
-enum TextNewLine text_newline_type(Text*);
-const char *text_newline_char(Text*);
-
enum TextSaveMethod {
TEXT_SAVE_AUTO, /* first try atomic, then fall back to inplace */
TEXT_SAVE_ATOMIC, /* create a new file, write content, atomically rename(2) over old file */