diff options
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index 64194e17be..4e3d62509c 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -2351,6 +2351,7 @@ describe('highlight namespaces', function() [5] = {background = Screen.colors.Magenta4, foreground = Screen.colors.Crimson}; [6] = {bold = true, reverse = true}; [7] = {reverse = true}; + [8] = {foreground = Screen.colors.Gray20}; } ns1 = meths.create_namespace 'grungy' @@ -2441,4 +2442,33 @@ describe('highlight namespaces', function() | ]]} end) + + it('redraws correctly when ns=0', function() + screen:expect{grid=[[ + ^ | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + | + ]]} + + meths.set_hl(0, 'EndOfBuffer', {fg='#333333'}) + screen:expect{grid=[[ + ^ | + {8:~ }| + {8:~ }| + {8:~ }| + {8:~ }| + {8:~ }| + {8:~ }| + {8:~ }| + {8:~ }| + | + ]]} + end) end) |