aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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