vi: fix [end] key handling

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 @@
 	case KEYCODE_END:		// Cursor Key End
 		for (;;) {
 			dot = end_line(dot);
-			if (--cmdcnt > 0)
+			if (--cmdcnt <= 0)
 				break;
 			dot_next();
 		}