Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18602:9d6fa65148d2 | 18603:f249b44039e0 |
---|---|
2613 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10}) | 2613 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10}) |
2614 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_7', {}) | 2614 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_7', {}) |
2615 call StopVimInTerminal(buf) | 2615 call StopVimInTerminal(buf) |
2616 | 2616 |
2617 call delete('XtestPopupCursorLine') | 2617 call delete('XtestPopupCursorLine') |
2618 | |
2619 " --------- | |
2620 " Use current buffer for popupmenu | |
2621 " --------- | |
2622 let lines =<< trim END | |
2623 call setline(1, ['one', 'two', 'three']) | |
2624 let winid = popup_create(bufnr('%'), #{ | |
2625 \ cursorline : 1, | |
2626 \ }) | |
2627 call win_execute(winid, "2") | |
2628 END | |
2629 call writefile(lines, 'XtestPopupCursorLine') | |
2630 let buf = RunVimInTerminal('-S XtestPopupCursorLine', #{rows: 10}) | |
2631 call VerifyScreenDump(buf, 'Test_popupwin_cursorline_8', {}) | |
2632 call StopVimInTerminal(buf) | |
2633 | |
2634 call delete('XtestPopupCursorLine') | |
2618 endfunc | 2635 endfunc |
2619 | 2636 |
2620 func Test_previewpopup() | 2637 func Test_previewpopup() |
2621 CheckScreendump | 2638 CheckScreendump |
2622 | 2639 |