aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/multibyte_spec.lua
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-10-12 10:57:31 -0700
committerGitHub <noreply@github.com>2024-10-12 10:57:31 -0700
commite049c6e4c08a141c94218672e770f86f91c27a11 (patch)
tree9ee26aa2f39b30a86410d79a425b1a440c807822 /test/functional/ui/multibyte_spec.lua
parent4b909528516032b002a4a32f3e06f0eb6185ea6b (diff)
downloadrneovim-e049c6e4c08a141c94218672e770f86f91c27a11.tar.gz
rneovim-e049c6e4c08a141c94218672e770f86f91c27a11.tar.bz2
rneovim-e049c6e4c08a141c94218672e770f86f91c27a11.zip
feat(ui): statusline text inherits highlights #29976
Changes apply to the winbar, statusline, and tabline text.
Diffstat (limited to 'test/functional/ui/multibyte_spec.lua')
-rw-r--r--test/functional/ui/multibyte_spec.lua20
1 files changed, 18 insertions, 2 deletions
diff --git a/test/functional/ui/multibyte_spec.lua b/test/functional/ui/multibyte_spec.lua
index f16f750ea1..3728ec8dbc 100644
--- a/test/functional/ui/multibyte_spec.lua
+++ b/test/functional/ui/multibyte_spec.lua
@@ -474,26 +474,42 @@ describe('multibyte rendering: statusline', function()
end)
it('emoji with ZWJ in filename with custom stl', function()
+ screen:add_extra_attr_ids {
+ [100] = {
+ bold = true,
+ reverse = true,
+ foreground = Screen.colors.Gray100,
+ background = Screen.colors.Red,
+ },
+ }
command('set statusline=xx%#ErrorMsg#%f%##yy')
command('file 🧑‍💻')
screen:expect {
grid = [[
^ |
{1:~ }|
- {3:xx}{9:🧑‍💻}{3:yy }|
+ {3:xx}{100:🧑‍💻}{3:yy }|
|
]],
}
end)
it('unprintable chars in filename with custom stl', function()
+ screen:add_extra_attr_ids {
+ [100] = {
+ bold = true,
+ reverse = true,
+ foreground = Screen.colors.Gray100,
+ background = Screen.colors.Red,
+ },
+ }
command('set statusline=xx%#ErrorMsg#%f%##yy')
command('file 🧑​💻')
screen:expect {
grid = [[
^ |
{1:~ }|
- {3:xx}{9:🧑<200b>💻}{3:yy }|
+ {3:xx}{100:🧑<200b>💻}{3:yy }|
|
]],
}