mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-06 07:10:40 +01:00
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.
27 KiB
27 KiB