0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.2385: opening cmdline window with feedkeys() does not work

Problem:    Opening cmdline window with feedkeys() does not work. (Yegappan
            Lakshmanan)
Solution:   Recognize K_CMDWIN also when ex_normal_busy is set.
This commit is contained in:
Bram Moolenaar
2019-12-04 15:11:08 +01:00
parent 079119babe
commit 85db547598
3 changed files with 9 additions and 1 deletions

View File

@@ -1361,7 +1361,8 @@ getcmdline_int(
#ifdef FEAT_CMDWIN
if (c == cedit_key || c == K_CMDWIN)
{
if (ex_normal_busy == 0 && got_int == FALSE)
// TODO: why is ex_normal_busy checked here?
if ((c == K_CMDWIN || ex_normal_busy == 0) && got_int == FALSE)
{
/*
* Open a window to edit the command line (and history).

View File

@@ -843,3 +843,8 @@ func Test_buffers_lastused()
bwipeout bufb
bwipeout bufc
endfunc
func Test_cmdwin_feedkeys()
" This should not generate E488
call feedkeys("q:\<CR>", 'x')
endfunc

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2385,
/**/
2384,
/**/