mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 03:00:06 +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)
|
let index = index(buffers, abuf)
|
||||||
if get(w:, 'shell_layer_win', 0) == 1
|
if get(w:, 'shell_layer_win', 0) == 1
|
||||||
exe 'bd!' . abuf
|
exe 'bd!' . abuf
|
||||||
|
" fuck the terminal windows
|
||||||
|
if get(w:, 'shell_layer_win', 0) == 1
|
||||||
|
close
|
||||||
|
endif
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
if index != -1
|
if index != -1
|
||||||
|
Loading…
Reference in New Issue
Block a user