diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:51:52 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:51:52 +0200 |
| commit | 3c6a6c4c342e2b5cca62cda849acc6d476dafa30 (patch) | |
| tree | 029880665f1436e4a6e325e1c4761d04b7c8127c /text.c | |
| parent | 1c8990a329fabf3cf4ab790a61ee86c35391c042 (diff) | |
| download | vis-3c6a6c4c342e2b5cca62cda849acc6d476dafa30.tar.gz vis-3c6a6c4c342e2b5cca62cda849acc6d476dafa30.tar.xz | |
text: remove text_insert_newline function
This is no longer needed because we always insert \n never \r\n.
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -670,10 +670,6 @@ bool text_printf(Text *txt, size_t pos, const char *format, ...) { return ret; } -size_t text_insert_newline(Text *txt, size_t pos) { - return text_insert(txt, pos, "\n", 1) ? 1 : 0; -} - static size_t revision_undo(Text *txt, Revision *rev) { size_t pos = EPOS; for (Change *c = rev->change; c; c = c->next) { |
