diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-26 11:48:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 11:48:05 +0200 |
commit | 68da87d2e78432151a237cf0dc47b32846c24f3c (patch) | |
tree | 560de49a13b447547a0738b721eb8d06acadb48a /test/functional/ui/highlight_spec.lua | |
parent | a92d78d201e53a4b2fb7b2f811a3f316678a8e6a (diff) | |
parent | 455bca1ba86a2524251fea6f79ef668c1e38f6aa (diff) | |
download | rneovim-68da87d2e78432151a237cf0dc47b32846c24f3c.tar.gz rneovim-68da87d2e78432151a237cf0dc47b32846c24f3c.tar.bz2 rneovim-68da87d2e78432151a237cf0dc47b32846c24f3c.zip |
Merge pull request #23742 from bfredl/neolight
fix(drawline): combine extmark highlight with area hl correctly
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index 89b503141b..9a4be4573c 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -526,6 +526,41 @@ describe('highlight', function() }) end) + + it("'diff', syntax and extmark", function() + local screen = Screen.new(25,10) + screen:attach() + exec([[ + new + call setline(1, ['', '01234 6789']) + windo diffthis + wincmd w + syn match WarningMsg "^.*$" + call nvim_buf_add_highlight(0, -1, 'ErrorMsg', 1, 2, 8) + ]]) + screen:expect([[ + {1: }^ | + {1: }{2:01}{3:234 67}{2:89}{5: }| + {4:~ }| + {4:~ }| + {7:[No Name] [+] }| + {1: } | + {1: }{6:-----------------------}| + {4:~ }| + {8:[No Name] }| + | + ]],{ + [0] = {Screen.colors.WebGray, foreground = Screen.colors.DarkBlue}, + [1] = {background = Screen.colors.Grey, foreground = Screen.colors.Blue4}, + [2] = {foreground = Screen.colors.Red, background = Screen.colors.LightBlue}, + [3] = {foreground = Screen.colors.Grey100, background = Screen.colors.LightBlue}, + [4] = {bold = true, foreground = Screen.colors.Blue}, + [5] = {background = Screen.colors.LightBlue}, + [6] = {bold = true, background = Screen.colors.LightCyan, foreground = Screen.colors.Blue1}, + [7] = {reverse = true, bold = true}, + [8] = {reverse = true}, + }) + end) end) describe("'listchars' highlight", function() |