1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00

Fix shell layer (#2663)

This commit is contained in:
Wang Shidong 2019-03-14 22:04:28 +08:00 committed by GitHub
parent 1376bb1729
commit 593ddb0901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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