diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 18:05:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 18:05:08 +1200 |
commit | aa9c5cf44228974a337dd73d0689a54f9c2ae34a (patch) | |
tree | e32a0ded2d4151a3ce534b4ca661252b7b211041 | |
parent | Merge branch 'hotfix/v1.1.1' into develop (diff) | |
parent | Bump VERSION (diff) | |
download | vim-write-mkpath-aa9c5cf44228974a337dd73d0689a54f9c2ae34a.tar.gz vim-write-mkpath-aa9c5cf44228974a337dd73d0689a54f9c2ae34a.zip |
Merge branch 'hotfix/v1.1.2' into develop
* hotfix/v1.1.2:
Wipe alternate buffer
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/write_mkpath.vim | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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 |