diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 09:47:02 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 09:50:08 +0100 |
commit | 877d5c8be799bb89107741ed9a0e24e22a1b4295 (patch) | |
tree | 556185a0d0ebf1ea621610e03506aa55ef76a89f /runtime/autoload | |
parent | d252be36e27a73087ff1d456866ce710db7b0c51 (diff) | |
download | rneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.tar.gz rneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.tar.bz2 rneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.zip |
vim-patch:a9604e614517
Update runtime files.
https://github.com/vim/vim/commit/a9604e61451707b38fdcb088fbfaeea2b922fef6
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/spellfile.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim index 84584c6e29..9ec6091218 100644 --- a/runtime/autoload/spellfile.vim +++ b/runtime/autoload/spellfile.vim @@ -20,6 +20,7 @@ function! spellfile#LoadFile(lang) endif return endif + let lang = tolower(a:lang) " If the URL changes we try all files again. if s:spellfile_URL != g:spellfile_URL @@ -28,13 +29,13 @@ function! spellfile#LoadFile(lang) endif " I will say this only once! - if has_key(s:donedict, a:lang . &enc) + if has_key(s:donedict, lang . &enc) if &verbose echomsg 'spellfile#LoadFile(): Tried this language/encoding before.' endif return endif - let s:donedict[a:lang . &enc] = 1 + let s:donedict[lang . &enc] = 1 " Find spell directories we can write in. let [dirlist, dirchoices] = spellfile#GetDirChoices() @@ -94,7 +95,7 @@ function! spellfile#LoadFile(lang) let newbufnr = winbufnr(0) endif - let fname = a:lang . '.ascii.spl' + let fname = lang . '.ascii.spl' echo 'Could not find it, trying ' . fname . '...' call spellfile#Nread(fname) if getline(2) !~ 'VIMspell' |