-
Notifications
You must be signed in to change notification settings - Fork 32
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
Question about autocmd on float window #65
Comments
Would you describe followings? I could not understand what happened only from the description.
Yes.
Actual sequence of this plugin is as follows:
BTW, 'verbose' option would be useful to debug such a problem. Please see
|
I believe lewis6991/gitsigns.nvim#484 is an example of this issue. |
I think this problem is caused by using |
git-messenger.mp4I use git-messenger with APZelos/blamer.nvim. After calling If I replace |
After popup window has been created, git-messenager uses `noautocmd wincmd p` to jump back to the current buffer, which ignores BufEnter and BufLeave events. Some other plugins depends on event BufEnter/BufLeave to take effect normally. So git-messenager should use `wincmd p` to preserve events. See issue rhysd#65 for details.
I've had this issue crop-up again recently |
Hi, @rhysd :
I am debugging a vim plugin using
BufEnter
autocmd on nvim. I found that when I call:GitMessenger
, aBufEnter
autocmd is triggered. ButBufEnter
won't be triggered again when float window disappear (git_messenger_close_on_cursor_moved is true).My plugin depends
BufEnter
to do some detect. When it enter to git-messenger buffer, function is closed, and there is no condition to make me open function again when back to normal buffer.I am not familiar with vimscript, so could you help to answer my question?
BufEnter
on popup window show orBufEnter
again when popup window close? (Because I think it may be a more compatible behavior to have pairing autocmd.)This may not an issue of git messenger, but thanks any way~
The text was updated successfully, but these errors were encountered: