fix(zsh-navigation-tools): quote terminfo expansions

the terminfo array values werent quoted so if they ever had spaces or weird chars the test would break. just wrapping them in double quotes to be safe
This commit is contained in:
aviu16 2026-02-15 06:28:13 -05:00
commit 12c4a98945

View file

@ -55,9 +55,9 @@ _nlist_cursor_visibility() {
[ "$1" = "1" ] && { tput cvvis; tput cnorm } [ "$1" = "1" ] && { tput cvvis; tput cnorm }
[ "$1" = "0" ] && tput civis [ "$1" = "0" ] && tput civis
elif [ "$_nlist_has_terminfo" = "1" ]; then elif [ "$_nlist_has_terminfo" = "1" ]; then
[ "$1" = "1" ] && { [ -n $terminfo[cvvis] ] && echo -n $terminfo[cvvis]; [ "$1" = "1" ] && { [ -n "$terminfo[cvvis]" ] && echo -n "$terminfo[cvvis]";
[ -n $terminfo[cnorm] ] && echo -n $terminfo[cnorm] } [ -n "$terminfo[cnorm]" ] && echo -n "$terminfo[cnorm]" }
[ "$1" = "0" ] && [ -n $terminfo[civis] ] && echo -n $terminfo[civis] [ "$1" = "0" ] && [ -n "$terminfo[civis]" ] && echo -n "$terminfo[civis]"
fi fi
} }