aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-11-28 04:55:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-11-28 04:55:48 +0100
commit1fd7129bc6b3792f2dc5ff08a77f167c7e628093 (patch)
tree24b771901ebeacbda7c63b4ac1ccf517a95a0822 /editors
parent65a1ee956f0721ad3cebf79c0a6b3266a0676524 (diff)
downloadbusybox-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.c2
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();
}