diff options
| -rw-r--r-- | text-motions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/text-motions.c b/text-motions.c index 1430d49..13aad19 100644 --- a/text-motions.c +++ b/text-motions.c @@ -459,7 +459,8 @@ size_t text_paragraph_prev(Text *txt, size_t pos) { char c; Iterator it = text_iterator_get(txt, pos); - while (text_iterator_byte_prev(&it, &c) && (c == '\n' || blank(c))); + while (text_iterator_byte_get(&it, &c) && (c == '\n' || blank(c))) + text_iterator_char_prev(&it, NULL); return text_line_blank_prev(txt, it.pos); } |
