aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/elvis/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/elvis/vi.c')
-rw-r--r--usr.bin/elvis/vi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/elvis/vi.c b/usr.bin/elvis/vi.c
index 2c4648f46193..7250e6efe5a4 100644
--- a/usr.bin/elvis/vi.c
+++ b/usr.bin/elvis/vi.c
@@ -510,7 +510,8 @@ void vi()
/* do it */
tcurs = (*keyptr->func)(cursor, count, i);
}
- count = 0L;
+ if (keyptr->args != C_C_K_CUT)
+ count = 0L;
break;
case CURSOR_MOVED: