aboutsummaryrefslogtreecommitdiff
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
parent65a1ee956f0721ad3cebf79c0a6b3266a0676524 (diff)
downloadbusybox-w32-1fd7129bc6b3792f2dc5ff08a77f167c7e628093.tar.gz
busybox-w32-1fd7129bc6b3792f2dc5ff08a77f167c7e628093.tar.bz2
busybox-w32-1fd7129bc6b3792f2dc5ff08a77f167c7e628093.zip
vi: fix [end] key handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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)
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 }