zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

ash-autosuggestions is incompatible with set -u #650

Open maneandrea opened 2 years ago

maneandrea commented 2 years ago

Describe the bug

If I want to use set -u for precautionary reasons in my .zshrc I get complaints of the like

_zsh_autosuggest_highlight_apply:3: POSTDISPLAY: parameter not set
_zsh_autosuggest_widget_clear:10: : parameter not set

To Reproduce

Steps to reproduce the behavior:

Just do set -u and see the aforementioned messages pop up all the time.

Desktop

Additional context

This is probably more of a feature request than a bug: I'd like the script to avoid needing unset variables.

lindhe commented 1 year ago

Is it just me or is the title wrong? It should be zsh not ash, right? Anywho, I'd also much appreciate if it was possible to run this plugin with set -u active.