aboutsummaryrefslogtreecommitdiff
path: root/text-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-objects.c')
-rw-r--r--text-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-objects.c b/text-objects.c
index a4a0db7..d786a2d 100644
--- a/text-objects.c
+++ b/text-objects.c
@@ -192,7 +192,7 @@ Filerange text_object_word_find_next(Text *txt, size_t pos, const char *word) {
Filerange match_word = text_object_word(txt, match_pos);
if (text_range_size(&match_word) == len)
return match_word;
- pos = match_pos;
+ pos = match_word.end;
} else {
return text_range_empty();
}