From 593ddb0901be63903722111f8b6ca0976b759df6 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 14 Mar 2019 22:04:28 +0800 Subject: [PATCH] Fix shell layer (#2663) --- autoload/SpaceVim/mapping.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/SpaceVim/mapping.vim b/autoload/SpaceVim/mapping.vim index bf36425b9..fc2758b90 100644 --- a/autoload/SpaceVim/mapping.vim +++ b/autoload/SpaceVim/mapping.vim @@ -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