aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-18 09:43:07 +0200
committerbfredl <bjorn.linse@gmail.com>2022-08-18 09:43:07 +0200
commit21b2906c9cbd7683770732314935ddc181d6e736 (patch)
tree7ab32f5157b3f6c8da96cb4e1cf0b7e60c9c6949 /test
parent02e9b5a8eeaf2a4696dd68ab21b33b9fa7bd6a16 (diff)
downloadrneovim-21b2906c9cbd7683770732314935ddc181d6e736.tar.gz
rneovim-21b2906c9cbd7683770732314935ddc181d6e736.tar.bz2
rneovim-21b2906c9cbd7683770732314935ddc181d6e736.zip
fix(winhl): do not crash when unsetting winhl in just opened window
fixes #19823
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/highlight_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index a3943d40b6..64194e17be 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -2317,6 +2317,22 @@ describe("'winhighlight' highlight", function()
|
]]}
end)
+
+ it('can be disabled in newly opened window #19823', function()
+ command('split | set winhl=Normal:ErrorMsg | set winhl=')
+ screen:expect{grid=[[
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {3:[No Name] }|
+ |
+ {0:~ }|
+ {4:[No Name] }|
+ |
+ ]]}
+
+ helpers.assert_alive()
+ end)
end)
describe('highlight namespaces', function()