[git commit] vi: fix [end] key handling

Denys Vlasenko vda.linux at googlemail.com
Mon Nov 28 03:55:48 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=1fd7129bc6b3792f2dc5ff08a77f167c7e628093
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 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();
 		}


More information about the busybox-cvs mailing list