-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix failure to resize match listing on VimResized
I noticed we're only getting one callback (ie. for the prompt but not for the match listing). Fix that by not doing a buffer-local autocmd. Next problem: the `WinClosed` event doesn't fire reliably, or if it does, `nvim_del_autocmd()` doesn't always work. Not sure which, but it happens routinely. So, we hack around that with a group that we clear before bringing up the UI. At worst, a lingering autocmd is going to hang around until the next time the user uses Command-T.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters