From ea0edaae6a54aca15a8703ef94d79f100ecd5a36 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 15 May 2020 16:29:47 +1200 Subject: Expand path before attempting creation --- autoload/spellfile_local.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3 From ac1e8aa10883563a6e37bce3c8a623927627f258 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 15 May 2020 16:30:17 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7dea76e..6d7de6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 +1.0.2 -- cgit v1.2.3