zsh-autosuggestions
zsh-autosuggestions copied to clipboard
[Bug] Continuously-defined functions when a widget contains a non-ascii character
To reproduce:
. ./zsh-autosuggestions.zsh
zle -N →demo
Then repeatedly run printf '%q\n' ${functions[(I)*demo]} and notice how the number of functions growing.
Zsh-autosuggestions is not wrapping these functions correctly.
Please change this line to use the builtin $widgets array instead of parsing zle -la:
for widget in ${${widgets:#${(j:|:)~ignore_widgets}}; do