0
0
mirror of https://github.com/vim/vim.git synced 2025-10-08 06:04:08 -04:00

patch 8.1.2176: syntax attributes not combined with Visual highlighting

Problem:    Syntax attributes not combined with Visual highlighting. (Arseny
            Nasokin)
Solution:   Combine the attributes. (closes #5083)
This commit is contained in:
Bram Moolenaar
2019-10-18 23:12:20 +02:00
parent c3bf7b56f2
commit 8459006af5
4 changed files with 25 additions and 6 deletions

View File

@@ -551,7 +551,7 @@ func Test_syntax_c()
\ '}',
\ ' static void',
\ 'myFunction(const double count, struct nothing, long there) {',
\ "\t// 123: nothing to read here",
\ "\t// 123: nothing to endif here",
\ "\tfor (int i = 0; i < count; ++i) {",
\ "\t break;",
\ "\t}",
@@ -563,7 +563,12 @@ func Test_syntax_c()
let $COLORFGBG = '15;0'
let buf = RunVimInTerminal('Xtest.c', {})
call term_sendkeys(buf, ":set hlsearch\r")
call term_sendkeys(buf, "/endif\r")
call term_sendkeys(buf, "vjfC")
call VerifyScreenDump(buf, 'Test_syntax_c_01', {})
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
let $COLORFGBG = ''