aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 5303332..25b2ba0 100644
--- a/vis.c
+++ b/vis.c
@@ -956,6 +956,14 @@ static void movement(const Arg *arg) {
action.textobj = moves_linewise[arg->i];
else
action.movement = &moves[arg->i];
+
+ if (action.op == &ops[OP_CHANGE]) {
+ if (action.movement == &moves[MOVE_WORD_START_NEXT])
+ action.movement = &moves[MOVE_WORD_END_NEXT];
+ else if (action.movement == &moves[MOVE_LONGWORD_START_NEXT])
+ action.movement = &moves[MOVE_LONGWORD_END_NEXT];
+ }
+
action_do(&action);
}