comparison src/ex_getln.c @ 18793:7a1606ceec7d v8.1.2385

patch 8.1.2385: opening cmdline window with feedkeys() does not work Commit: https://github.com/vim/vim/commit/85db5475982e166ec5bb1c8c9a5c8bf062d49ed1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 4 15:11:08 2019 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Dec 2019 15:15:04 +0100
parents 8f05b3cf8557
children 050f5eaa9e50
comparison
equal deleted inserted replaced
18792:af365376638e 18793:7a1606ceec7d
1359 } 1359 }
1360 1360
1361 #ifdef FEAT_CMDWIN 1361 #ifdef FEAT_CMDWIN
1362 if (c == cedit_key || c == K_CMDWIN) 1362 if (c == cedit_key || c == K_CMDWIN)
1363 { 1363 {
1364 if (ex_normal_busy == 0 && got_int == FALSE) 1364 // TODO: why is ex_normal_busy checked here?
1365 if ((c == K_CMDWIN || ex_normal_busy == 0) && got_int == FALSE)
1365 { 1366 {
1366 /* 1367 /*
1367 * Open a window to edit the command line (and history). 1368 * Open a window to edit the command line (and history).
1368 */ 1369 */
1369 c = open_cmdwin(); 1370 c = open_cmdwin();