mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:40:04 +08:00
Fix shell layer (#2663)
This commit is contained in:
parent
1376bb1729
commit
593ddb0901
@ -211,6 +211,10 @@ function! SpaceVim#mapping#close_term_buffer(...) abort
|
||||
let index = index(buffers, abuf)
|
||||
if get(w:, 'shell_layer_win', 0) == 1
|
||||
exe 'bd!' . abuf
|
||||
" fuck the terminal windows
|
||||
if get(w:, 'shell_layer_win', 0) == 1
|
||||
close
|
||||
endif
|
||||
return
|
||||
endif
|
||||
if index != -1
|
||||
|
Loading…
Reference in New Issue
Block a user