aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/spell_spec.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2023-05-22 11:07:55 +0200
committerGitHub <noreply@github.com>2023-05-22 17:07:55 +0800
commitb11a8c1b5d3985479351b34f2078d490cbf59e90 (patch)
tree48618e4456c79c9747eac3fc6cbb71c9834872d6 /test/functional/ui/spell_spec.lua
parentb7708eac24c22a96676176c68569d6859a9f793f (diff)
downloadrneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.tar.gz
rneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.tar.bz2
rneovim-b11a8c1b5d3985479351b34f2078d490cbf59e90.zip
fix(highlight): remove unnecessary assignment to char_attr for 'spell' (#23713)
Diffstat (limited to 'test/functional/ui/spell_spec.lua')
-rw-r--r--test/functional/ui/spell_spec.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/ui/spell_spec.lua b/test/functional/ui/spell_spec.lua
index 15819aef40..0f553d4a9b 100644
--- a/test/functional/ui/spell_spec.lua
+++ b/test/functional/ui/spell_spec.lua
@@ -254,4 +254,19 @@ describe("'spell'", function()
]])
end)
+ it('and syntax does not clear extmark highlighting at the start of a word', function()
+ screen:try_resize(43, 3)
+ command([[
+ set spell
+ syntax match Constant "^.*$"
+ call setline(1, "This is some text without any spell errors.")
+ ]])
+ local ns = meths.create_namespace("spell")
+ curbufmeths.set_extmark(ns, 0, 0, { hl_group = 'WarningMsg', end_col = 43 })
+ screen:expect([[
+ {6:^This is some text without any spell errors.}|
+ {0:~ }|
+ |
+ ]])
+ end)
end)