diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-05-09 17:21:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-05-09 17:21:04 +1200 |
commit | 52faef25163e6286892271f87265c04bfa8671fb (patch) | |
tree | 2023099d7f57eda907f14cea90f3b921bc23a40b | |
parent | Commit first version (diff) | |
download | vim-html-spelllang-52faef25163e6286892271f87265c04bfa8671fb.tar.gz vim-html-spelllang-52faef25163e6286892271f87265c04bfa8671fb.zip |
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.
-rw-r--r-- | autoload/html/spelllang.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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', \], '.') |