comparison src/testdir/test_popupwin.vim @ 18494:04a40c1514c4 v8.1.2241

patch 8.1.2241: match highlight does not combine with 'wincolor' Commit: https://github.com/vim/vim/commit/024dbd229fa7991b7bf7ef4d0888b43ab03783f7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 2 22:00:15 2019 +0100 patch 8.1.2241: match highlight does not combine with 'wincolor' Problem: Match highlight does not combine with 'wincolor'. Solution: Apply 'wincolor' last on top of any other attribute. (closes https://github.com/vim/vim/issues/5159)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Nov 2019 22:15:05 +0100
parents 41a5f241e9d5
children e855058e0c23
comparison
equal deleted inserted replaced
18493:9b39a91bb0c6 18494:04a40c1514c4
247 let winid = popup_create([ 247 let winid = popup_create([
248 \ '111 222 333', 248 \ '111 222 333',
249 \ '444 555 666', 249 \ '444 555 666',
250 \], #{line: 3, col: 10, border: []}) 250 \], #{line: 3, col: 10, border: []})
251 set hlsearch 251 set hlsearch
252 hi VeryBlue ctermfg=blue guifg=blue
252 /666 253 /666
253 call matchadd('ErrorMsg', '111') 254 call matchadd('ErrorMsg', '111')
254 call matchadd('ErrorMsg', '444') 255 call matchadd('VeryBlue', '444')
255 call win_execute(winid, "call matchadd('ErrorMsg', '111')") 256 call win_execute(winid, "call matchadd('ErrorMsg', '111')")
256 call win_execute(winid, "call matchadd('ErrorMsg', '555')") 257 call win_execute(winid, "call matchadd('VeryBlue', '555')")
257 END 258 END
258 call writefile(lines, 'XtestPopupMatches') 259 call writefile(lines, 'XtestPopupMatches')
259 let buf = RunVimInTerminal('-S XtestPopupMatches', #{rows: 10}) 260 let buf = RunVimInTerminal('-S XtestPopupMatches', #{rows: 10})
260 call VerifyScreenDump(buf, 'Test_popupwin_matches', {}) 261 call VerifyScreenDump(buf, 'Test_popupwin_matches', {})
261 262