diff options
Diffstat (limited to 'text-motions.c')
| -rw-r--r-- | text-motions.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/text-motions.c b/text-motions.c index 884d95c..f5701ae 100644 --- a/text-motions.c +++ b/text-motions.c @@ -158,14 +158,6 @@ size_t text_line_finish(Text *txt, size_t pos) { return it.pos; } -size_t text_line_lastchar(Text *txt, size_t pos) { - char c; - Iterator it = text_iterator_get(txt, text_line_end(txt, pos)); - if (text_iterator_char_prev(&it, &c) && c == '\n') - text_iterator_byte_next(&it, NULL); - return it.pos; -} - size_t text_line_end(Text *txt, size_t pos) { char c; Iterator it = text_iterator_get(txt, pos); |
