diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-22 22:08:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-22 22:08:09 +0100 |
commit | 9e26f7d31fbb780613fa700fe61de3e0b4ff2ef6 (patch) | |
tree | a00df42661ee8d924b48fe4f5508c10a5612cc1b /src/ex_getln.c | |
parent | 563bbeabcce5580e03648e687bd7ddb9626a03d9 (diff) |
patch 8.1.0792: bad display if opening cmdline window from Insert completionv8.1.0792
Problem: Popup menu is displayed on top of the cmdline window if it is
opened from Insert completion. (Bjorn Linse)
Solution: Remove the popup menu. Restore the cursor position.
(closes #3838)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index fc48a9b723..9400b20e82 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -7268,6 +7268,10 @@ open_cmdwin(void) /* Don't execute autocommands while creating the window. */ block_autocmds(); + // When using completion in Insert mode with <C-R>=<C-F> one can open the + // command line window, but we don't want the popup menu then. + pum_undisplay(); + /* don't use a new tab page */ cmdmod.tab = 0; cmdmod.noswapfile = 1; |