aboutsummaryrefslogtreecommitdiff
path: root/text-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-objects.c')
-rw-r--r--text-objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/text-objects.c b/text-objects.c
index 010f1df..82fa36f 100644
--- a/text-objects.c
+++ b/text-objects.c
@@ -196,6 +196,7 @@ Filerange text_object_function(Text *txt, size_t pos) {
Filerange r = object_function(txt, pos);
if (!text_range_valid(&r))
return r;
+ r.end++;
return text_range_linewise(txt, &r);
}