mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-03-10 07:07:27 +08:00

These widgets rely on `$LASTWIDGET` being set to restore the cursor position. When asynchronous suggestions are enabled, and the widget triggers a suggestion to be fetched, `autosuggest-suggest` will be called and $LASTWIDGET will be set to it.