diff src/testdir/test_popupwin.vim @ 21373:3d73cdd173ab v8.2.1237

patch 8.2.1237: changing 'completepopup' after opening popup has no effect Commit: https://github.com/vim/vim/commit/447bfba24b231777a79bf53cdb33f44d9691e47e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 18 16:07:16 2020 +0200 patch 8.2.1237: changing 'completepopup' after opening popup has no effect Problem: Changing 'completepopup' after opening a popup has no effect. (Jay Sitter) Solution: Close the popup when the options are changed. (closes #6471)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Jul 2020 16:15:04 +0200
parents 608f674c6035
children 1d1ffb0dbd87
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -3109,6 +3109,12 @@ func Test_popupmenu_info_border()
   call term_sendkeys(buf, "otest text test text\<C-X>\<C-U>")
   call VerifyScreenDump(buf, 'Test_popupwin_infopopup_7', {})
 
+  " Test that when the option is changed the popup changes.
+  call term_sendkeys(buf, "\<Esc>")
+  call term_sendkeys(buf, ":set completepopup=border:off\<CR>")
+  call term_sendkeys(buf, "a\<C-X>\<C-U>")
+  call VerifyScreenDump(buf, 'Test_popupwin_infopopup_8', {})
+
   call term_sendkeys(buf, "\<Esc>")
   call StopVimInTerminal(buf)
   call delete('XtestInfoPopup')