Merge pull request #7496 from jamessan/windows-spellfile-fix

spellfile.vim: Search for a writable directory on Windows
This commit is contained in:
James McCoy 2017-11-06 20:56:03 -05:00 committed by GitHub
commit 52748d266d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ function! spellfile#WritableSpellDir()
" Always use the $XDG_DATA_HOME/nvim/site directory
if exists('$XDG_DATA_HOME')
return $XDG_DATA_HOME . "/nvim/site/spell"
else
elseif !(has('win32') || has('win64'))
return $HOME . "/.local/share/nvim/site/spell"
endif
for dir in split(&rtp, ',')