diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-28 04:55:48 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-28 04:55:48 +0100 |
commit | 1fd7129bc6b3792f2dc5ff08a77f167c7e628093 (patch) | |
tree | 24b771901ebeacbda7c63b4ac1ccf517a95a0822 /editors | |
parent | 65a1ee956f0721ad3cebf79c0a6b3266a0676524 (diff) | |
download | busybox-1fd7129bc6b3792f2dc5ff08a77f167c7e628093.tar.gz |
vi: fix [end] key handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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) case KEYCODE_END: // Cursor Key End for (;;) { dot = end_line(dot); - if (--cmdcnt > 0) + if (--cmdcnt <= 0) break; dot_next(); } |