|
@@ -96,6 +96,7 @@ endif
|
|
|
" Command actions {{{2
|
|
" Command actions {{{2
|
|
|
let s:actions = [
|
|
let s:actions = [
|
|
|
\ 'current',
|
|
\ 'current',
|
|
|
|
|
+ \ 'close',
|
|
|
\ ]
|
|
\ ]
|
|
|
|
|
|
|
|
" Command-line completion function for `s:actions`.
|
|
" Command-line completion function for `s:actions`.
|
|
@@ -611,6 +612,11 @@ function! BufExplorer(...)
|
|
|
return
|
|
return
|
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
|
|
+ if action == 'close'
|
|
|
|
|
+ call s:Close()
|
|
|
|
|
+ return
|
|
|
|
|
+ endif
|
|
|
|
|
+
|
|
|
let [tabNbr, winNbr] = s:FindBufExplorer()
|
|
let [tabNbr, winNbr] = s:FindBufExplorer()
|
|
|
if tabNbr > 0
|
|
if tabNbr > 0
|
|
|
execute 'keepjumps ' . tabNbr . 'tabnext'
|
|
execute 'keepjumps ' . tabNbr . 'tabnext'
|