diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-02 03:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 03:43:39 +0200 |
commit | e63fdf63ba057877573dbb3171a8c7ae698cf1bc (patch) | |
tree | 28baa93d934b2574883e0640e3ebce6394039e0f /test/functional/ui/bufhl_spec.lua | |
parent | 60b56ed458c6b35d5045959192b49da5a0ea84f3 (diff) | |
parent | eef3809067ae0f613e30b711ef720415c7016381 (diff) | |
download | rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.tar.gz rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.tar.bz2 rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.zip |
Merge pull request #11133 from blueyed/backports
[release-0.4] backports
Diffstat (limited to 'test/functional/ui/bufhl_spec.lua')
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index bcccef84b6..d8ca947645 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -31,6 +31,9 @@ describe('Buffer highlighting', function() [14] = {background = Screen.colors.Gray90}, [15] = {background = Screen.colors.Gray90, bold = true, foreground = Screen.colors.Brown}, [16] = {foreground = Screen.colors.Magenta, background = Screen.colors.Gray90}, + [17] = {foreground = Screen.colors.Magenta, background = Screen.colors.LightRed}, + [18] = {background = Screen.colors.LightRed}, + [19] = {foreground = Screen.colors.Blue1, background = Screen.colors.LightRed}, }) end) @@ -516,6 +519,32 @@ describe('Buffer highlighting', function() | ]]) end) + + it('works with color column', function() + eq(-1, set_virtual_text(-1, 3, {{"暗x事", "Comment"}}, {})) + screen:expect{grid=[[ + ^1 + 2 {3:=}{2: 3} | + 3 + {11:ERROR:} invalid syntax | + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5| + , 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s| + x = 4 {12:暗x事} | + {1:~ }| + {1:~ }| + | + ]]} + + command("set colorcolumn=9") + screen:expect{grid=[[ + ^1 + 2 {3:=}{2: }{17:3} | + 3 + {11:ERROR:} invalid syntax | + 5, 5, 5,{18: }5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5| + , 5, 5, 5, 5, 5, 5, Lorem ipsum dolor s| + x = 4 {12:暗}{19:x}{12:事} | + {1:~ }| + {1:~ }| + | + ]]} + end) end) it('and virtual text use the same namespace counter', function() |