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:
@@ -1361,7 +1361,8 @@ getcmdline_int(
|
|||||||
#ifdef FEAT_CMDWIN
|
#ifdef FEAT_CMDWIN
|
||||||
if (c == cedit_key || c == K_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).
|
* Open a window to edit the command line (and history).
|
||||||
|
@@ -843,3 +843,8 @@ func Test_buffers_lastused()
|
|||||||
bwipeout bufb
|
bwipeout bufb
|
||||||
bwipeout bufc
|
bwipeout bufc
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_cmdwin_feedkeys()
|
||||||
|
" This should not generate E488
|
||||||
|
call feedkeys("q:\<CR>", 'x')
|
||||||
|
endfunc
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2385,
|
||||||
/**/
|
/**/
|
||||||
2384,
|
2384,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user