diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c index 71d600834..6070c48d2 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -3319,7 +3319,7 @@ static void do_cmd(int c) | |||
3319 | case KEYCODE_END: // Cursor Key End | 3319 | case KEYCODE_END: // Cursor Key End |
3320 | for (;;) { | 3320 | for (;;) { |
3321 | dot = end_line(dot); | 3321 | dot = end_line(dot); |
3322 | if (--cmdcnt > 0) | 3322 | if (--cmdcnt <= 0) |
3323 | break; | 3323 | break; |
3324 | dot_next(); | 3324 | dot_next(); |
3325 | } | 3325 | } |