]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(spellfile): xdg: Do not assume $HOME/.vim directory master
authorChristian Brabandt <cb@256bit.org>
Wed, 22 Jul 2026 21:49:18 +0000 (21:49 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 22 Jul 2026 21:49:18 +0000 (21:49 +0000)
fixes: #20794

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/spellfile.vim

index 43f7dffa1a893095cd5bc3f2ea9269e036bfdbef..2061676e21642f664ecb93abf22ff0c736445882 100644 (file)
@@ -1,6 +1,6 @@
 " Vim script to download a missing spell file
 " Maintainer:  The Vim Project <https://github.com/vim/vim>
-" Last Change: 2023 Aug 10
+" Last Change: 2026 Jul 22
 " Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 if !exists('g:spellfile_URL')
@@ -194,10 +194,6 @@ function! spellfile#GetDirChoices()
 endfunc
 
 function! spellfile#WritableSpellDir()
-  if has("unix")
-    " For Unix always use the $HOME/.vim directory
-    return $HOME . "/.vim/spell"
-  endif
   for dir in split(&rtp, ',')
     if filewritable(dir) == 2
       return dir . "/spell"