From 85db5475982e166ec5bb1c8c9a5c8bf062d49ed1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 4 Dec 2019 15:11:08 +0100 Subject: 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. --- src/ex_getln.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ex_getln.c') diff --git a/src/ex_getln.c b/src/ex_getln.c index 25f409b74..769dcb836 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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). -- cgit v1.2.1