aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 18:53:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 18:53:53 +1200
commit9f12c7a85e4a2f1cd6f6ba39c5a55a45fe4ea793 (patch)
tree15c6b7e2bff82062a3d74a2c6ebe596af4c68f20
parentMerge branch 'release/v2.1.0' (diff)
parentBump VERSION (diff)
downloadvim-write-mkpath-2.1.1.tar.gz (sig)
vim-write-mkpath-2.1.1.zip
Merge branch 'hotfix/v2.1.1'v2.1.1
* hotfix/v2.1.1: Block out :file call on Windows
-rw-r--r--VERSION2
-rw-r--r--autoload/write_mkpath.vim7
2 files changed, 6 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 7ec1d6d..3e3c2f1 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.0
+2.1.1
diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim
index 7610b87..2503651 100644
--- a/autoload/write_mkpath.vim
+++ b/autoload/write_mkpath.vim
@@ -30,8 +30,11 @@ function! write_mkpath#(path) abort
call mkdir(dir, 'p')
" Prod Vim into realising the buffer's directory exists now, so that a
- " subsequent change of working directory doesn't break it
- silent keepalt file %
+ " subsequent change of working directory doesn't break it; this doesn't
+ " appear to be necessary on Windows, for reasons unclear
+ if !has('win32') && !has('win64')
+ silent keepalt file %
+ endif
" Re-run the BufWritePre hooks, now that the directory exists and a useable
" filename has been set; this will start this function again from the top,