summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-25 22:02:51 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-25 22:02:51 +0000
commit28c258fd24342fe52e85059d68ce69cf9ef5f8cd (patch)
tree6f8dc9ce77b063c0498f1ca554464395fb995666 /src/getchar.c
parent7df351eb8aecf8e542c7ebecc4ec734107a8aacb (diff)
downloadvim-git-28c258fd24342fe52e85059d68ce69cf9ef5f8cd.tar.gz
updated for version 7.0187
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 5da7537ff..ff821cb02 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2365,7 +2365,7 @@ vgetorpeek(advance)
colnr_T col = 0, vcol;
char_u *ptr;
- if (p_smd && msg_silent == 0)
+ if (mode_displayed)
{
unshowmode(TRUE);
mode_deleted = TRUE;
@@ -2643,7 +2643,7 @@ vgetorpeek(advance)
*/
if (advance && p_smd && msg_silent == 0 && (State & INSERT))
{
- if (c == ESC && !mode_deleted && !no_mapping)
+ if (c == ESC && !mode_deleted && !no_mapping && mode_displayed)
{
if (typebuf.tb_len && !KeyTyped)
redraw_cmdline = TRUE; /* delete mode later */