commit ff71518cd3c2d222fc9ffecc28c487fa4cbf2d05
parent e23894bde8f8c43510dc89433b89926dc7e6c5d9
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 23 Feb 2019 20:22:30 +0100
Delete hidden buffers shouldn't abort
If it does, it'll quit as soon as it encounters a buffer that can't be
deleted (like interactive terminal). That's bad, I want it to continue.
Former-commit-id: b532569786d14f5a56e2315465f1130d7f209afe
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/commands.vimrc b/vim/commands.vimrc
@@ -36,7 +36,7 @@ function! Redir(cmd) abort
call setline(1, split(output, "\n"))
endfunction
-function! DeleteHiddenBuffers() abort " Vim with the 'hidden' option
+function! DeleteHiddenBuffers() " Vim with the 'hidden' option
let tpbl=[]
call map(range(1, tabpagenr('$')), 'extend(tpbl, tabpagebuflist(v:val))')
for buf in filter(range(1, bufnr('$')), 'bufexists(v:val) && index(tpbl, v:val)==-1')