diff src/testdir/test_popupwin.vim @ 18603:f249b44039e0 v8.1.2295

patch 8.1.2295: if buffer of popup is in another window cursorline sign shows Commit: https://github.com/vim/vim/commit/4eb7dae255abc271cf313d4c75839577f1424183 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 12 22:33:45 2019 +0100 patch 8.1.2295: if buffer of popup is in another window cursorline sign shows Problem: If buffer of popup is in another window cursorline sign shows. Solution: Check the group of the sign.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Nov 2019 22:45:05 +0100
parents b10ef01555c8
children fa995154904e
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2615,6 +2615,23 @@ func Test_popup_cursorline()
   call StopVimInTerminal(buf)
 
   call delete('XtestPopupCursorLine')
+
+  " ---------
+  " Use current buffer for popupmenu
+  " ---------
+  let lines =<< trim END
+    call setline(1, ['one', 'two', 'three'])
+    let winid = popup_create(bufnr('%'), #{
+	  \ cursorline : 1,
+	  \ })
+    call win_execute(winid, "2")
+  END
+  call writefile(lines, 'XtestPopupCursorLine')
+  let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10})
+  call VerifyScreenDump(buf, 'Test_popupwin_cursorline_8', {})
+  call StopVimInTerminal(buf)
+
+  call delete('XtestPopupCursorLine')
 endfunc
 
 func Test_previewpopup()