To: vim_dev@googlegroups.com Subject: Patch 8.2.4341 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.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) Files: src/cmdexpand.c, src/testdir/test_cmdline.vim, src/testdir/dumps/Test_wildmenu_pum_38.dump *** ../vim-8.2.4340/src/cmdexpand.c 2022-02-10 19:51:42.545569904 +0000 --- src/cmdexpand.c 2022-02-10 21:07:33.019381262 +0000 *************** *** 331,336 **** --- 331,337 ---- pum_undisplay(); VIM_CLEAR(compl_match_array); update_screen(0); + redrawcmd(); } void cmdline_pum_cleanup(cmdline_info_T *cclp) *** ../vim-8.2.4340/src/testdir/test_cmdline.vim 2022-02-10 19:51:42.545569904 +0000 --- src/testdir/test_cmdline.vim 2022-02-10 21:06:59.779424160 +0000 *************** *** 2160,2165 **** --- 2160,2172 ---- call term_sendkeys(buf, ":sign \\\") call VerifyScreenDump(buf, 'Test_wildmenu_pum_37', {}) + " After removing the pum the command line is redrawn + call term_sendkeys(buf, ":edit foo\") + call term_sendkeys(buf, ":edit bar\") + call term_sendkeys(buf, ":ls\") + call term_sendkeys(buf, ":com\ ") + call VerifyScreenDump(buf, 'Test_wildmenu_pum_38', {}) + call term_sendkeys(buf, "\\") call StopVimInTerminal(buf) call delete('Xtest') *** ../vim-8.2.4340/src/testdir/dumps/Test_wildmenu_pum_38.dump 2022-02-10 21:08:15.175326921 +0000 --- src/testdir/dumps/Test_wildmenu_pum_38.dump 2022-02-10 21:05:09.119567316 +0000 *************** *** 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 *** ../vim-8.2.4340/src/version.c 2022-02-10 20:21:00.442383178 +0000 --- src/version.c 2022-02-10 21:02:53.795743254 +0000 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4341, /**/ -- Q: Why do Norwegians excel at text editing? A: Their ancestors are Vi-kings /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///