Change to bwipeout from bdelete

This commit is contained in:
pjht 2021-08-19 08:57:34 -05:00
parent 99018b4a2d
commit 49a9f9d4af
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
This is a fork to change the plugin to use bwipeout instead of bdelete for deleting the buffer.
The original README is below:
I have not written this plugin myself.
I found it on http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window and it is to my best knowledge licensed with a CC-BY-SA license (full license text here: http://creativecommons.org/licenses/by-sa/3.0/legalcode).

View File

@ -66,7 +66,7 @@ function! s:Bclose(bang, buffer)
endif
endif
endfor
execute 'bdelete'.a:bang.' '.btarget
execute 'bwipeout'.a:bang.' '.btarget
execute wcurrent.'wincmd w'
endfunction
command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>')