Skip to content

Commit

Permalink
vis: fix ^ motion for blank lines terminated by \r\n
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Feb 24, 2017
1 parent 2ca3181 commit 615a2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text-motions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 615a2c4

Please sign in to comment.