aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis.c b/vis.c
index 581adcd..ff212cc 100644
--- a/vis.c
+++ b/vis.c
@@ -643,10 +643,10 @@ void action_do(Vis *vis, Action *a) {
r.end++;
}
- if (a->textobj->type & SPLIT)
- c.range = r;
- else
+ if (vis->mode->visual)
c.range = text_range_union(&c.range, &r);
+ else
+ c.range = r;
if (i < count - 1)
pos = c.range.end + 1;