mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:20:04 +08:00
close terminal buffer just like a regular buffer
This commit is contained in:
parent
bb106aa33d
commit
4defe70969
@ -174,6 +174,12 @@ function! SpaceVim#mapping#close_current_buffer() abort
|
||||
return
|
||||
endif
|
||||
endif
|
||||
|
||||
if &buftype == 'terminal'
|
||||
exe 'bd!'
|
||||
return
|
||||
endif
|
||||
|
||||
let cmd_close_buf = 'bd' . f
|
||||
let index = index(buffers, bn)
|
||||
if index != -1
|
||||
|
Loading…
Reference in New Issue
Block a user