diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-15 16:30:31 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-15 16:30:31 +1200 |
commit | 8772445433cffa3722c441569ae82f5ade4938c7 (patch) | |
tree | a09e2a2af5f44b8c1ac7c20a0775ba8032e9729d | |
parent | Merge branch 'hotfix/v1.0.1' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-spellfile-local-8772445433cffa3722c441569ae82f5ade4938c7.tar.gz vim-spellfile-local-8772445433cffa3722c441569ae82f5ade4938c7.zip |
Merge branch 'hotfix/v1.0.2'v1.0.2
* hotfix/v1.0.2:
Expand path before attempting creation
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/spellfile_local.vim | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1 +1 @@ -1.0.1 +1.0.2 diff --git a/autoload/spellfile_local.vim b/autoload/spellfile_local.vim index 596d997..1ae937b 100644 --- a/autoload/spellfile_local.vim +++ b/autoload/spellfile_local.vim @@ -71,8 +71,9 @@ function! spellfile_local#() abort " Attempt to create the first directory in the list if it doesn't exist " already. Just let any error happen and reach the user. " - if !isdirectory(dirnames[0]) - call mkdir(dirnames[0], 'p', 0700) + let dirname = expand(dirnames[0]) + if !isdirectory(dirname) + call mkdir(dirname, 'p', 0700) endif " Now we'll actually combine those two together to make a long list of |