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 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(); } |