diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-09-25 22:16:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-09-25 22:16:38 +0000 |
commit | 1e01546026ce909b5fe56c05867f28e77d1b6eb3 (patch) | |
tree | 05ccef65c430097352670acbbeb5520d649ba841 /src/ex_getln.c | |
parent | bfd8fc0529f46612f7b3efca6c7b3305e70ac374 (diff) | |
download | vim-git-1e01546026ce909b5fe56c05867f28e77d1b6eb3.tar.gz |
updated for version 7.0150
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index b69076fcc..a3fac10ac 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -428,13 +428,10 @@ getcmdline(firstc, count, indent) if (p_wmnu && wild_menu_showing != 0) { int skt = KeyTyped; - int old_RedrawingDisabled; + int old_RedrawingDisabled = RedrawingDisabled; if (ccline.input_fn) - { - old_RedrawingDisabled = RedrawingDisabled; RedrawingDisabled = 0; - } if (wild_menu_showing == WM_SCROLLED) { @@ -463,10 +460,10 @@ getcmdline(firstc, count, indent) # endif redraw_statuslines(); } - if (ccline.input_fn) - RedrawingDisabled = old_RedrawingDisabled; KeyTyped = skt; wild_menu_showing = 0; + if (ccline.input_fn) + RedrawingDisabled = old_RedrawingDisabled; } #endif } @@ -4876,7 +4873,7 @@ set_cmdline_pos(pos) /* * Get the current command-line type. - * Returns ':' or '/' or '?' or '@' or '>' + * Returns ':' or '/' or '?' or '@' or '>' or '-' * Only works when the command line is being edited. * Returns NUL when something is wrong. */ @@ -4887,6 +4884,8 @@ get_cmdline_type() if (p == NULL) return NUL; + if (p->cmdfirstc == NUL) + return (p->input_fn) ? '@' : '-'; return p->cmdfirstc; } |