zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

[Bug] Continuously-defined functions when a widget contains a non-ascii character

Open xPMo opened this issue 4 years ago • 0 comments

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

xPMo avatar Feb 22 '21 22:02 xPMo