mirror of
https://git.busybox.net/busybox.git
synced 2024-11-23 13:43:28 +08:00
vi: fix [end] key handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
65a1ee956f
commit
1fd7129bc6
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user