aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index 816a90d..1595d1e 100644
--- a/vis.c
+++ b/vis.c
@@ -759,8 +759,9 @@ void vis_do(Vis *vis) {
window_jumplist_add(win, pos);
else
window_jumplist_invalidate(win);
- } else if (a->movement->type & INCLUSIVE ||
- (linewise && a->movement->type & LINEWISE_INCLUSIVE)) {
+ } else if (a->movement->type & INCLUSIVE && c.range.end > start) {
+ c.range.end = text_char_next(txt, c.range.end);
+ } else if (linewise && (a->movement->type & LINEWISE_INCLUSIVE)) {
c.range.end = text_char_next(txt, c.range.end);
}
} else if (a->textobj) {