Mercurial > vim
diff src/testdir/test_popupwin.vim @ 18027:56032a704448 v8.1.2009
patch 8.1.2009: cursorline highlighting not updated in popup window
Commit: https://github.com/vim/vim/commit/3d2a3cbce873af861031a01e02694dcfae0c4582
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 8 17:12:01 2019 +0200
patch 8.1.2009: cursorline highlighting not updated in popup window
Problem: Cursorline highlighting not updated in popup window. (Marko
Mahni?)
Solution: Check if the cursor position changed. (closes #4912)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 08 Sep 2019 17:15:03 +0200 |
parents | 2fdbcecab216 |
children | 873068e19e1f |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2306,6 +2306,20 @@ func Test_popup_cursorline() call term_sendkeys(buf, "x") call StopVimInTerminal(buf) + " --------- + " Cursor in second line when creating the popup + " --------- + let lines =<< trim END + let winid = popup_create(['111', '222', '333'], #{ + \ 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_7', {}) + call StopVimInTerminal(buf) + call delete('XtestPopupCursorLine') endfunc