From 52faef25163e6286892271f87265c04bfa8671fb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 9 May 2022 17:21:04 +1200 Subject: Handle missing +multi_byte feature I think this is the only thing that was preventing this from working on Vim v7.0, where the feature was still optional. --- autoload/html/spelllang.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/html/spelllang.vim b/autoload/html/spelllang.vim index dfabf40..264540b 100644 --- a/autoload/html/spelllang.vim +++ b/autoload/html/spelllang.vim @@ -41,7 +41,7 @@ function! html#spelllang#Set() abort " let spellfile = 'spell/' . join([ \ tolower(matches[1]), - \ &encoding, + \ (has('multi_byte') ? &encoding : 'ascii'), \ 'spl', \], '.') -- cgit v1.2.3