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
Telescope triggering the BufEnter
event thrice
#3057
Labels
bug
Something isn't working
Comments
vyfor
changed the title
Telescope triggering the
Telescope triggering the Apr 18, 2024
BufEnter
event twiceBufEnter
event thrice
When an entry is selected, first telescope closes itself which triggers BufEnter on the "old" buffer and then we do something like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When switching files using Telescope, three (instead of two) events are being triggered: one for opening the Telescope's buffer, one for the old file and one for the new file. It seems that Telescope's prompt window closes prematurely before moving to the new file, which lets us see a glimpse of the old file's buffer for a short time, thus, triggering the autocommand. Is this intended?
Neovim version
Operating system and version
Windows 10
Telescope version / branch / rev
master latest
checkhealth telescope
Steps to reproduce
nvim -nu minimal.lua minimal.lua
:mes clear
:Telescope find_files
:mes
Expected behavior
Actual behavior
Minimal config
The text was updated successfully, but these errors were encountered: