spellfile.vim: Search for a writable directory on Windows

Fixes #6664 until #6272 is merged and sdtpath('data') can be used.
This commit is contained in:
James McCoy committed 2017-11-06 20:54:07 -05:00
1 parent ad527392ab
commit b9b2fb7d5d
1 file changed
+1 -1
+1 -1
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, ',')