patch 8.2.1303: calling popup_setoptions() resets 'signcolumn'
Problem: Calling popup_setoptions() resets 'signcolumn'.
Solution: Only set 'signcolumn' when creating the popup. (closes #6542)
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 054d479..beb6870 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -3115,6 +3115,11 @@
call term_sendkeys(buf, "a\<C-X>\<C-U>")
call VerifyScreenDump(buf, 'Test_popupwin_infopopup_8', {})
+ call term_sendkeys(buf, " \<Esc>")
+ call term_sendkeys(buf, ":set completepopup+=width:10\<CR>")
+ call term_sendkeys(buf, "a\<C-X>\<C-U>")
+ call VerifyScreenDump(buf, 'Test_popupwin_infopopup_9', {})
+
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
call delete('XtestInfoPopup')
@@ -3436,6 +3441,11 @@
normal! ggg$
let winid = popup_atcursor(repeat('x', 500), #{moved: 'any', border: []})
+ " 'signcolumn' was getting reset
+ call setwinvar(winid, '&signcolumn', 'yes')
+ call popup_setoptions(winid, {'zindex': 1000})
+ call assert_equal('yes', getwinvar(winid, '&signcolumn'))
+
call popup_close(winid)
bwipe!
set signcolumn&