aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-01 11:46:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-01 11:46:19 +1200
commit386eb2dec8351fe28913aba2caf035d8091d0dc0 (patch)
treee247cb64e956f49f16fedf55eabf6d360847c8b6
parentMerge branch 'release/v1.1.0' (diff)
parentBump VERSION (diff)
downloadvim-write-mkpath-386eb2dec8351fe28913aba2caf035d8091d0dc0.tar.gz
vim-write-mkpath-386eb2dec8351fe28913aba2caf035d8091d0dc0.zip
Merge branch 'hotfix/v1.1.1'v1.1.1
* hotfix/v1.1.1: Just use :keepalt to avoid read-only @#
-rw-r--r--VERSION2
-rw-r--r--autoload/write_mkpath.vim9
2 files changed, 2 insertions, 9 deletions
diff --git a/VERSION b/VERSION
index 9084fa2..524cb55 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.0
+1.1.1
diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim
index 6b1855d..3bcd786 100644
--- a/autoload/write_mkpath.vim
+++ b/autoload/write_mkpath.vim
@@ -20,14 +20,7 @@ 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.
- let alt = @#
- execute 'silent file '.fnameescape(getcwd().'/'.a:path)
-
- " That :file command will have set the alternate buffer to an unlisted
- " buffer of the same name, which we don't want. Wipe it, and restore the
- " previous alternative buffer.
- bwipe #
- let @# = alt
+ execute 'silent keepalt file '.fnameescape(getcwd().'/'.a:path)
endfunction