aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-11-06 15:54:00 -0500
committerJames McCoy <jamessan@jamessan.com>2017-11-06 20:54:07 -0500
commitb9b2fb7d5d032d2618fd5cefc185cab4a034a351 (patch)
tree7388e4ed74a9531000c35868eae9e9a31bc10f74
parentad527392abb60e19954d5e8dba05af282d67d15b (diff)
downloadrneovim-b9b2fb7d5d032d2618fd5cefc185cab4a034a351.tar.gz
rneovim-b9b2fb7d5d032d2618fd5cefc185cab4a034a351.tar.bz2
rneovim-b9b2fb7d5d032d2618fd5cefc185cab4a034a351.zip
spellfile.vim: Search for a writable directory on Windows
Fixes #6664 until #6272 is merged and sdtpath('data') can be used.
-rw-r--r--runtime/autoload/spellfile.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index fe7113b9a4..84584c6e29 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -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, ',')