summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-10 21:09:45 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-10 21:09:45 +0000
commit414acd342f4a66d930da34d419929985b48bd301 (patch)
treed1cdba27388b535b921f483b960142dff7eed815 /src
parent949b35d83b69a7eab7b280b5af6940da9aedad43 (diff)
patch 8.2.4341: command line not redrawn when finishing popup menuv8.2.4341
Problem: Command line not redrawn when finishing popup menu and the screen has scrolled up. Solution: Redraw the command line after updating the screen. (closes #9722)
Diffstat (limited to 'src')
-rw-r--r--src/cmdexpand.c1
-rw-r--r--src/testdir/dumps/Test_wildmenu_pum_38.dump10
-rw-r--r--src/testdir/test_cmdline.vim7
-rw-r--r--src/version.c2
4 files changed, 20 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 280bf83348..79b6a2b2c5 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -331,6 +331,7 @@ void cmdline_pum_remove(void)
pum_undisplay();
VIM_CLEAR(compl_match_array);
update_screen(0);
+ redrawcmd();
}
void cmdline_pum_cleanup(cmdline_info_T *cclp)
diff --git a/src/testdir/dumps/Test_wildmenu_pum_38.dump b/src/testdir/dumps/Test_wildmenu_pum_38.dump
new file mode 100644
index 0000000000..44c66eda0e
--- /dev/null
+++ b/src/testdir/dumps/Test_wildmenu_pum_38.dump
@@ -0,0 +1,10 @@
+| +0&#ffffff0@74
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|~| @73
+|:+0#0000000&|c|o|m|c|l|e|a|r| > @64
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 8c5928faac..1beb9af4ba 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -2160,6 +2160,13 @@ func Test_wildmenu_pum()
call term_sendkeys(buf, ":sign \<Tab>\<C-A>\<S-Tab>")
call VerifyScreenDump(buf, 'Test_wildmenu_pum_37', {})
+ " After removing the pum the command line is redrawn
+ call term_sendkeys(buf, ":edit foo\<CR>")
+ call term_sendkeys(buf, ":edit bar\<CR>")
+ call term_sendkeys(buf, ":ls\<CR>")
+ call term_sendkeys(buf, ":com\<Tab> ")
+ call VerifyScreenDump(buf, 'Test_wildmenu_pum_38', {})
+
call term_sendkeys(buf, "\<C-U>\<CR>")
call StopVimInTerminal(buf)
call delete('Xtest')
diff --git a/src/version.c b/src/version.c
index 42e6a4ca11..d78e2d1b45 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4341,
+/**/
4340,
/**/
4339,