1
0
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:
Arith Xu 2018-02-22 10:31:33 +08:00
parent bb106aa33d
commit 4defe70969

View File

@ -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