comparison src/ex_getln.c @ 15569:43fa814a7977 v8.1.0792

patch 8.1.0792: bad display if opening cmdline window from Insert completion commit https://github.com/vim/vim/commit/9e26f7d31fbb780613fa700fe61de3e0b4ff2ef6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 22 22:08:09 2019 +0100 patch 8.1.0792: bad display if opening cmdline window from Insert completion 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Jan 2019 22:15:05 +0100
parents dd725a8ab112
children 6effd97a0429
comparison
equal deleted inserted replaced
15568:16ab7979815a 15569:43fa814a7977
7266 win_size_save(&winsizes); 7266 win_size_save(&winsizes);
7267 7267
7268 /* Don't execute autocommands while creating the window. */ 7268 /* Don't execute autocommands while creating the window. */
7269 block_autocmds(); 7269 block_autocmds();
7270 7270
7271 // When using completion in Insert mode with <C-R>=<C-F> one can open the
7272 // command line window, but we don't want the popup menu then.
7273 pum_undisplay();
7274
7271 /* don't use a new tab page */ 7275 /* don't use a new tab page */
7272 cmdmod.tab = 0; 7276 cmdmod.tab = 0;
7273 cmdmod.noswapfile = 1; 7277 cmdmod.noswapfile = 1;
7274 7278
7275 /* Create a window for the command-line buffer. */ 7279 /* Create a window for the command-line buffer. */