summaryrefslogtreecommitdiffstatshomepage
path: root/runtime
diff options
context:
space:
mode:
authoremmanueltouzery <etouzery@gmail.com>2023-02-07 09:37:14 +0100
committerGitHub <noreply@github.com>2023-02-07 09:37:14 +0100
commitb1ae775de618e3e87954a88d533ec17bbef41cdf (patch)
treee2df3b5c46163000d940a986f24ec047829bd4f1 /runtime
parent70fb40a2290d2a555a97d4aab33c813a0413da49 (diff)
fix(treesitter): really backup spelloptions (#22145)release-0.8
see 0887ad1cbb050d2bc6169ad46aa07cf42c90493f for the original commit on master, and 80bbba94d669e3fdda2edddf1c37acda1cfed968 for the backport on the branch, which forgot to backup the original setting value.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/lua/vim/treesitter/highlighter.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/treesitter/highlighter.lua b/runtime/lua/vim/treesitter/highlighter.lua
index ce6caa5050..d77a0d0d03 100644
--- a/runtime/lua/vim/treesitter/highlighter.lua
+++ b/runtime/lua/vim/treesitter/highlighter.lua
@@ -88,6 +88,8 @@ function TSHighlighter.new(tree, opts)
end
end
+ self.orig_spelloptions = vim.bo[self.bufnr].spelloptions
+
vim.bo[self.bufnr].syntax = ''
vim.b[self.bufnr].ts_highlight = true