aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 1cd473a..ae3dab5 100644
--- a/vis.c
+++ b/vis.c
@@ -1609,6 +1609,10 @@ static void action_do(Vis *vis, Action *a) {
}
if (a->op) {
+ /* we do not support visual repeat, still do something resonable */
+ if (vis->mode->visual && !a->movement && !a->textobj)
+ a->movement = &moves[MOVE_NOP];
+
/* operator implementations must not change the mode,
* they might get called multiple times (once for every cursor)
*/