vim-repl icon indicating copy to clipboard operation
vim-repl copied to clipboard

VIM exits during Buffer navigation after REPLHide in Win10

Open echaya opened this issue 3 years ago • 1 comments

Describe the bug

VIM will exit itself after I use :REPLHide and navigate to the hidden buffer. Please see the gif

Screenshots

buffer navigation

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!

echaya avatar Jun 29 '21 02:06 echaya

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

lrittel avatar Feb 19 '22 21:02 lrittel