Closed N-R-K closed 2 years ago
Probably try to use nvim_win_close()
for neovim while use win_execute(.., 'close')
in vim. Let's see if that's more stable.
Probably try to use
nvim_win_close()
for neovim while usewin_execute(.., 'close')
in vim. Let's see if that's more stable.
Ahh, nice. It's already using that for nvim
, glanced over it. Makes sense why nvim doesn't have that problems.
Closes: https://github.com/mcchrish/nnn.vim/issues/141
The patch is still a bit messy and could use some cleanup.
But first I'd like to see if any weird environment specific behavior comes up. For example using
execute win_id2win(l:term.winhandle) . 'close'
invim
(neovim works fine) was resulting wiping the regular buffer as well whilecall win_execute(l:term.winhandle, 'close')
works fine.