aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/write_mkpath.vim5
2 files changed, 5 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 524cb55..45a1b3f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.1
+1.1.2
diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim
index 3bcd786..6c55e78 100644
--- a/autoload/write_mkpath.vim
+++ b/autoload/write_mkpath.vim
@@ -20,7 +20,10 @@ function! write_mkpath#New(path) abort
" Set filename to absolute path using :file {name}; do it silently so that
" the nice name remains displayed to the user. Record the name of the
" alternate buffer first, so we can put it back after :file messes with it.
- execute 'silent keepalt file '.fnameescape(getcwd().'/'.a:path)
+ execute 'silent file '.fnameescape(getcwd().'/'.a:path)
+
+ " Wipe the unlisted alternate buffer that :file leaves behind
+ bwipe #
endfunction