-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with LASTWIDGET caused by async suggestions
There are a number of widgets that rely on LASTWIDGET so that they can chain their behavior together on subsequent invocations. When a suggestion was fetched asynchronously, the widget showing the suggestion would overwrite LASTWIDGET and break these widgets that rely on it. Relatively recently, a flag was added to the `zle` builtin to opt out of setting LASTWIDGET when calling a widget. We can use that flag to avoid setting LASTWIDGET when displaying suggestions that were fetched asynchronously.
- Loading branch information
1 parent
700885a
commit 77b9916
Showing
2 changed files
with
24 additions
and
2 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