aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-01 18:56:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-01 18:56:16 +1200
commit5343f325d4214a2272ccf35af13716e5a8bd212e (patch)
treed2ee14c354cd04767c6ba06e749a5e102a9f4183
parentMerge branch 'release/v2.0.0' into develop (diff)
parentBump VERSION (diff)
downloadvim-write-mkpath-5343f325d4214a2272ccf35af13716e5a8bd212e.tar.gz
vim-write-mkpath-5343f325d4214a2272ccf35af13716e5a8bd212e.zip
Merge branch 'hotfix/v2.0.1' into develop
* hotfix/v2.0.1: Add Vim v7.3 dependency Use :file to recognise created path at end of hook
-rw-r--r--VERSION2
-rw-r--r--autoload/write_mkpath.vim4
-rw-r--r--doc/write_mkpath.txt2
-rw-r--r--plugin/write_mkpath.vim2
4 files changed, 7 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 227cea2..38f77a6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.0
+2.0.1
diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim
index 8a3ac9d..cba56e9 100644
--- a/autoload/write_mkpath.vim
+++ b/autoload/write_mkpath.vim
@@ -26,4 +26,8 @@ function! write_mkpath#(path) abort
call mkdir(dir, 'p')
endif
+ " 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 %
+
endfunction
diff --git a/doc/write_mkpath.txt b/doc/write_mkpath.txt
index 76823d9..0ddec4a 100644
--- a/doc/write_mkpath.txt
+++ b/doc/write_mkpath.txt
@@ -1,4 +1,4 @@
-*write_mkpath.txt* For Vim version 7.0 Last change: 2019 Jun 01
+*write_mkpath.txt* For Vim version 7.3 Last change: 2019 Jun 01
DESCRIPTION *write_mkpath*
diff --git a/plugin/write_mkpath.vim b/plugin/write_mkpath.vim
index ea53191..64bb6c2 100644
--- a/plugin/write_mkpath.vim
+++ b/plugin/write_mkpath.vim
@@ -5,7 +5,7 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_write_mkpath') || &compatible || v:version < 700
+if exists('loaded_write_mkpath') || &compatible || v:version < 703
finish
endif