Patch 8.1.2385
Problem: Opening cmdline window with feedkeys() does not work. (Yegappan
Lakshmanan)
Solution: Recognize K_CMDWIN also when ex_normal_busy is set.
Files: src/ex_getln.c, src/testdir/test_cmdline.vim
*** ../vim-8.1.2384/src/ex_getln.c 2019-12-01 21:41:24.477837841 +0100
--- src/ex_getln.c 2019-12-04 15:10:39.197949267 +0100
***************
*** 1361,1367 ****
#ifdef FEAT_CMDWIN
if (c == cedit_key || c == K_CMDWIN)
{
! if (ex_normal_busy == 0 && got_int == FALSE)
{
/*
* Open a window to edit the command line (and history).
--- 1361,1368 ----
#ifdef FEAT_CMDWIN
if (c == cedit_key || c == K_CMDWIN)
{
! // 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).
*** ../vim-8.1.2384/src/testdir/test_cmdline.vim 2019-11-26
16:50:27.300851212 +0100
--- src/testdir/test_cmdline.vim 2019-12-04 15:08:27.754394305 +0100
***************
*** 843,845 ****
--- 843,850 ----
bwipeout bufb
bwipeout bufc
endfunc
+
+ func Test_cmdwin_feedkeys()
+ " This should not generate E488
+ call feedkeys("q:\<CR>", 'x')
+ endfunc
*** ../vim-8.1.2384/src/version.c 2019-12-03 22:59:16.810149346 +0100
--- src/version.c 2019-12-04 15:09:31.810178540 +0100
***************
*** 744,745 ****
--- 744,747 ----
{ /* Add new patch number below this line */
+ /**/
+ 2385,
/**/
--
hundred-and-one symptoms of being an internet addict:
180. You maintain more than six e-mail addresses.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201912041411.xB4EBjjp017316%40masaka.moolenaar.net.