Skip to content

Commit

Permalink
Reset splitMode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nadedan authored Dec 21, 2021
1 parent 99557c4 commit 4f20377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/bufexplorer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f20377

Please sign in to comment.