michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.44k stars 47 forks source link

fix: reopen window after the result window is closed #227

Closed zhengpd closed 1 year ago

zhengpd commented 1 year ago

Currently, if the display is set to TerminalWithCode and close the display window with C-w c, the window would not be reopened on running SnipRun next time.

This commit is for fixing it.

michaelb commented 1 year ago

Funnily enough, here if I close the TerminalWithCode view with C-w c, I don't have an issue and it reopens automatically. However, on C-w l then :q it remains closed, while it reopen with your fix. Thanks!