comparison 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
comparison
equal deleted inserted replaced
21372:86c5173b29b1 21373:3d73cdd173ab
3107 call term_sendkeys(buf, ":bn\<CR>") 3107 call term_sendkeys(buf, ":bn\<CR>")
3108 call term_sendkeys(buf, ":bn\<CR>") 3108 call term_sendkeys(buf, ":bn\<CR>")
3109 call term_sendkeys(buf, "otest text test text\<C-X>\<C-U>") 3109 call term_sendkeys(buf, "otest text test text\<C-X>\<C-U>")
3110 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_7', {}) 3110 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_7', {})
3111 3111
3112 " Test that when the option is changed the popup changes.
3113 call term_sendkeys(buf, "\<Esc>")
3114 call term_sendkeys(buf, ":set completepopup=border:off\<CR>")
3115 call term_sendkeys(buf, "a\<C-X>\<C-U>")
3116 call VerifyScreenDump(buf, 'Test_popupwin_infopopup_8', {})
3117
3112 call term_sendkeys(buf, "\<Esc>") 3118 call term_sendkeys(buf, "\<Esc>")
3113 call StopVimInTerminal(buf) 3119 call StopVimInTerminal(buf)
3114 call delete('XtestInfoPopup') 3120 call delete('XtestInfoPopup')
3115 endfunc 3121 endfunc
3116 3122