vim-repl
vim-repl copied to clipboard
VIM exits during Buffer navigation after REPLHide in Win10
Describe the bug
VIM will exit itself after I use :REPLHide
and navigate to the hidden buffer. Please see the gif
Screenshots
Desktop (please complete the following information):
- result of
:REPLDebugInfo
can't capture a REPLDEbugInfo as VIM exits after toggle to the hidden buffer
Additional context
let me know in case any further info is needed. thanks!
Vim quitting when the repl is the only remaining window after closing all other windows is intended behavior.
This is triggered by the BufEnter
event which also fires when you switch to another buffer in the same window:
https://github.com/sillybun/vim-repl/blob/3ba3baa5924b8dd41c482e68da0dd3bb35e13acd/autoload/repl.vim#L281
That may be the source of the observed behavior.
Using the WinEnter
or even better the WinClose
event instead should fix this.
But I don't know if that causes other bugs or breaks intended behavior … @sillybun ? :D