浏览代码

Reset splitMode

If you use either split mode, you can no longer use the regular non-split mode. This is because the split mode set s:splitMode and that variable is never reset to "" to allow you run without split mode.
This change simply resets s:splitMode to "" after completing the split mode bufexplorer.
nadedan 4 年之前
父节点
当前提交
4f20377909
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugin/bufexplorer.vim

+ 2 - 0
plugin/bufexplorer.vim

@@ -392,12 +392,14 @@ endfunction
 function! BufExplorerHorizontalSplit()
     let s:splitMode = "sp"
     execute "BufExplorer"
+    let s:splitMode = ""
 endfunction
 
 " BufExplorerVerticalSplit {{{2
 function! BufExplorerVerticalSplit()
     let s:splitMode = "vsp"
     execute "BufExplorer"
+    let s:splitMode = ""
 endfunction
 
 " ToggleBufExplorer {{{2