summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-06 12:06:15 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-06 12:06:15 +0200
commitbc256d91eadb8f32d6a5833c1878684d3c75fb2d (patch)
tree08103477dabc9e0286af65479aca7d0fc7b08f4d /src/getchar.c
parent64fdf5ceae75d85e139a0d3812e0544f5bf6cb56 (diff)
updated for version 7.3.540v7.3.540
Problem: Cursor is left on the text instead of the command line. Solution: Don't call setcursor() in command line mode.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index aea8d10da7..c6d9492ebd 100644
--- 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)