Closing a terminal after renaming the file of the buffer that was open causes an error.
I'm originally running into this issue with lf.vim, but it happens even if you disable lf.vim and just use :FloatermNew lf or just :FloatermNew and manually rename the file.
I get that this is probably mostly vim-related, but is there a way around this error? The new file gets opened in the correct buffer just fine, but that error is still there.
Steps to reproduce
1.) Have a buffer open
2.) Open a new terminal with :FloatermNew
3.) Rename the file in the current buffer
4.) Close terminal
Actual behaviour
Error:
Error detected while processing function <SNR>110_on_floaterm_close[20]..floaterm#window#hide:
line 24:
E211: File "path/to/old/filename" no longer available
Before reporting
Environment
If you are using neovim, just run
:checkhealth floaterm
and post the contentbelow.
Configurations related to vim-floaterm in vimrc(i.e.
g:floaterm_xxx
):Describe your question, feature request, or bug.
Closing a terminal after renaming the file of the buffer that was open causes an error.
I'm originally running into this issue with lf.vim, but it happens even if you disable lf.vim and just use
:FloatermNew lf
or just:FloatermNew
and manually rename the file.I get that this is probably mostly vim-related, but is there a way around this error? The new file gets opened in the correct buffer just fine, but that error is still there.
Steps to reproduce
1.) Have a buffer open 2.) Open a new terminal with
:FloatermNew
3.) Rename the file in the current buffer 4.) Close terminalActual behaviour
Error:
Expected behaviour
The buffer just closes