Open char101 opened 1 year ago
Stable reproducible and very annoying. It seems BufHidden autocmd is not running for open floaterm popup when tabs are switched. Adding BufLeave to autoload/floaterm/terminal.vim L20 makes auto-hiding work and the crash is gone. Please update.
Something like this in .vimrc
can be used as a workaround:
function! FloatermHide()
if &filetype == 'floaterm'
call floaterm#window#hide(bufnr('%'))
endif
endfunction
autocmd! BufLeave * call FloatermHide()
It closes the popup when tabs are switched.
Environment
GVim
If you are using vim(not neovim), fill in the following blanks
vim --version
: 9.0.1270Platform:
Configurations related to vim-floaterm in vimrc(i.e.
g:floaterm_xxx
):Describe your question, feature request, or bug.
Toggling the popup (using
F1
as mapped above) in two different tabs causes the cursor in the other tab to be locked. Pressing F1 again in any of the tabs will crash gvim.Steps to reproduce
Steps to reproduce the behavior:
F1
in the first tabF1
in the second tabF1
in the first or second tab will crash gvimI think if the popup is opened in a tab, then existing popup in other tab should be closed first.