aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-11-06 20:56:03 -0500
committerGitHub <noreply@github.com>2017-11-06 20:56:03 -0500
commit52748d266ddbb73e0c759a5251ecbeda1c5fcade (patch)
tree7388e4ed74a9531000c35868eae9e9a31bc10f74
parentad527392abb60e19954d5e8dba05af282d67d15b (diff)
parentb9b2fb7d5d032d2618fd5cefc185cab4a034a351 (diff)
downloadrneovim-52748d266ddbb73e0c759a5251ecbeda1c5fcade.tar.gz
rneovim-52748d266ddbb73e0c759a5251ecbeda1c5fcade.tar.bz2
rneovim-52748d266ddbb73e0c759a5251ecbeda1c5fcade.zip
Merge pull request #7496 from jamessan/windows-spellfile-fix
spellfile.vim: Search for a writable directory on Windows
-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, ',')