diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-24 09:47:12 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-24 09:47:12 +0100 |
| commit | 615a2c403833f0db591d56c5406dae23ca711777 (patch) | |
| tree | be70d8048e5a269a4b12e0a32e312b86b4c7d358 | |
| parent | 2ca318116c6ad8a539dd13d86475add4548c5524 (diff) | |
| download | vis-615a2c403833f0db591d56c5406dae23ca711777.tar.gz vis-615a2c403833f0db591d56c5406dae23ca711777.tar.xz | |
vis: fix ^ motion for blank lines terminated by \r\n
| -rw-r--r-- | text-motions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-motions.c b/text-motions.c index 094395f..322e115 100644 --- a/text-motions.c +++ b/text-motions.c @@ -137,7 +137,7 @@ size_t text_line_begin(Text *txt, size_t pos) { size_t text_line_start(Text *txt, size_t pos) { char c; Iterator it = text_iterator_get(txt, text_line_begin(txt, pos)); - while (text_iterator_byte_get(&it, &c) && c != '\n' && space(c)) + while (text_iterator_byte_get(&it, &c) && c != '\r' && c != '\n' && space(c)) text_iterator_byte_next(&it, NULL); return it.pos; } |
