Open camoz opened 4 months ago
Neovim actually prints the warning message, but the message is cleared from the screen after the file is open. You can see it from :messages
. Not sure how I can prevent it from being cleared.
function! Foo()
let opts = {}
function! opts.on_exit(...)
bd
echom 'This message will be cleared'
sleep 1
endfunction
tabnew
call termopen('sleep 1', opts)
startinsert
endfunction
call Foo()
function! Bar()
let opts = {}
function! opts.on_exit(...)
bd
echom 'This message will not be cleared'
sleep 1
endfunction
tabnew
call termopen('sleep 1', opts)
endfunction
call Bar()
Checklist
man fzf
)Output of
fzf --version
0.52.0 (bcda25a5)
OS
Shell
Problem / Steps to reproduce
Neovim 0.10 changed how to handle files for which there already exists a running neovim process. From https://neovim.io/doc/user/news-0.10.html:
Neovim will show a warning instead. This can be easily tested by:
:e ~/foobar
-> save:e ~/foobar
-> it printsW325: Ignoring swapfile from Nvim process ...
However, when opening the second file with
:FZF
, the warning is not shown.I think there are two reasons why it might be really nice to fix this:
'hidden'
by default, which makes it easy to have some unsaved changes in a background buffer.Is there a way to fix this?