diff src/getchar.c @ 3560:af083cb521bc v7.3.540

updated for version 7.3.540 Problem: Cursor is left on the text instead of the command line. Solution: Don't call setcursor() in command line mode.
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Jun 2012 12:06:15 +0200
parents f52d2ea0f81c
children 94342b0605fb
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2819,7 +2819,8 @@ vgetorpeek(advance)
 			edit_unputchar();
 		    if (State & CMDLINE)
 			unputcmdline();
-		    setcursor();	/* put cursor back where it belongs */
+		    else
+			setcursor();	/* put cursor back where it belongs */
 		}
 
 		if (c < 0)