forked from aniani/vim
patch 9.0.1048: with "screenline" in 'culopt' cursorline highlight is wrong
Problem: With "screenline" in 'culopt' cursorline highlight is wrong.
Solution: Apply the priority logic also when "screenline is in 'culopt'.
(closes #11696)
This commit is contained in:
@@ -9,4 +9,4 @@
|
||||
|X+0#0000e05#ffffff0|C|w|i|n|d|o|w||+0#0000000&|4+0#af5f00255&| |c|o|l| |6|-|7||+0#0000000&| |m|a|t|c|h|e|s| @47
|
||||
|~+0#4040ff13&| @73
|
||||
|[+3#0000000&|Q|u|i|c|k|f|i|x| |L|i|s|t|]| |:|v|i|m|g|r|e|p| |e| |X|C|w|i|n|d|o|w| @20|2|,|1| @12|A|l@1
|
||||
|:+0&&|s|e|t| |c|u|r|s|o|r|l|i|n|e| @59
|
||||
|:+0&&| @73
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
>X+8#0000e05#ffffff0|C|w|i|n|d|o|w||+8#0000000&|4+8#af5f00255&| |c|o|l| |6|-|7||+8#0000000&| |m|a|t|c|h|e|s| @47
|
||||
|~+0#4040ff13&| @73
|
||||
|[+3#0000000&|Q|u|i|c|k|f|i|x| |L|i|s|t|]| |:|v|i|m|g|r|e|p| |e| |X|C|w|i|n|d|o|w| @20|3|,|1| @12|A|l@1
|
||||
|:+0&&|s|e|t| |c|u|r|s|o|r|l|i|n|e| @59
|
||||
|:+0&&| @73
|
||||
|
||||
@@ -3120,6 +3120,11 @@ func Test_cwindow_highlight()
|
||||
call VerifyScreenDump(buf, 'Test_quickfix_cwindow_2', {})
|
||||
|
||||
call term_sendkeys(buf, "\<C-W>j:set cursorline\<CR>")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_quickfix_cwindow_3', {})
|
||||
|
||||
call term_sendkeys(buf, ":set cursorlineopt=number,screenline\<CR>")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_quickfix_cwindow_3', {})
|
||||
|
||||
call term_sendkeys(buf, "j")
|
||||
|
||||
@@ -1805,12 +1805,18 @@ func Test_sign_cursor_position()
|
||||
call term_sendkeys(buf, "2G")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_sign_cursor_5', {})
|
||||
call term_sendkeys(buf, ":set cursorlineopt=number,screenline\<CR>")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_sign_cursor_5', {})
|
||||
|
||||
" sign highlighting overrules 'cursorline'
|
||||
call term_sendkeys(buf, ":sign unplace 12\<CR>")
|
||||
call term_sendkeys(buf, ":sign place 13 line=2 priority=100 name=s2\<CR>")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_sign_cursor_6', {})
|
||||
call term_sendkeys(buf, ":set cursorlineopt&\<CR>")
|
||||
call term_sendkeys(buf, ":\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_sign_cursor_6', {})
|
||||
|
||||
" clean up
|
||||
call StopVimInTerminal(buf)
|
||||
|
||||
Reference in New Issue
Block a user