summaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 71d6008..6070c48 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3319,7 +3319,7 @@ static void do_cmd(int c)
case KEYCODE_END: // Cursor Key End
for (;;) {
dot = end_line(dot);
- if (--cmdcnt > 0)
+ if (--cmdcnt <= 0)
break;
dot_next();
}