-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After quitting diff window, BufEnter event cannot be triggered #470
Comments
@lewis6991 Any ideas please? I am customizing my setup and this "issue" confuses me a lot. Thank you so much. |
I've been able to reproduce the issue but have no idea why it occurs. My guess is that it is a quick of Neovim. |
Many thanks. Does it mean this is a bug of Neovim? Because I don't know how you implement |
It's just a guess, but it could be. Might even be intended behaviour. I'll look into it at some point. |
Okay. Thank you. |
Hi @lewis6991 , Thank you. |
Nice! Thanks. |
Description
After using
:q
to quit the window created by:Gitsigns diffthis
, the cursor goes back to the original buffer, however,BufEnter
event cannot not be trigger.Is this a bug? Thank you very much.
Neovim version
NVIM v0.7.0-dev+975-g4a96e7809
Operating system and version
macOS 12.2 (the latest)
Steps to reproduce
In init.vim, create an
autocmd
for demo:Then in any buffer, run
:Gitsigns diffthis
. A temp split window will be opened and the cursor is positioned in this temp window.Run
:q
to quit the diff mode. The temp split window will be closed and the cursor goes back to the original window (buffer), however, "Hello" doesn't show in:messages
, i.e.,BufEnter
event is not triggered.Expected behavior
BufEnter
event should be triggered after quitting the diff window.Actual behavior
See above
Gitsigns debug messages
No response
Minimal config
Using gitsigns default config.
The text was updated successfully, but these errors were encountered: