aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-10-04 16:24:33 +0200
committerGitHub <noreply@github.com>2023-10-04 16:24:33 +0200
commit3079fa1f9f198bb303fa616004da9c269673c7a5 (patch)
treebce1c06f58e7fd5672f209ab281f272cfe8f70e8 /test/functional/ui
parent29fe883aa9166bdbcae3f935523c75a8aa56fe45 (diff)
parentd4872377fef7eeb794ea06321f62281af0cde8e3 (diff)
downloadrneovim-3079fa1f9f198bb303fa616004da9c269673c7a5.tar.gz
rneovim-3079fa1f9f198bb303fa616004da9c269673c7a5.tar.bz2
rneovim-3079fa1f9f198bb303fa616004da9c269673c7a5.zip
Merge pull request #25491 from glepnir/25474
fix(highlight): attr set all when normal attr changed
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/highlight_spec.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 931e1f9985..7776e024b0 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -2523,6 +2523,8 @@ describe('highlight namespaces', function()
[6] = {bold = true, reverse = true};
[7] = {reverse = true};
[8] = {foreground = Screen.colors.Gray20};
+ [9] = {foreground = Screen.colors.Blue};
+ [10] = {bold = true, foreground = Screen.colors.SeaGreen};
}
ns1 = meths.create_namespace 'grungy'
@@ -2655,4 +2657,21 @@ describe('highlight namespaces', function()
"Normal:Visual",
},res)
end)
+
+ it('Normal in set_hl #25474', function()
+ meths.set_hl(0, 'Normal', {bg='#333333'})
+ command('highlight Ignore')
+ screen:expect{grid=[[
+ |
+ {1:~ }|
+ {1:~ }|
+ {6: }|
+ |
+ Ignore {8:xxx} {9:ctermf}|
+ {9:g=}15 {9:guifg=}|
+ bg |
+ {10:Press ENTER or type comma}|
+ {10:nd to continue}^ |
+ ]]}
+ end)
end)