From 12c4a989455337a19fd7ae03988300466403d111 Mon Sep 17 00:00:00 2001 From: aviu16 <162624394+aviu16@users.noreply.github.com> Date: Sun, 15 Feb 2026 06:28:13 -0500 Subject: [PATCH] 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 --- plugins/zsh-navigation-tools/n-list | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/zsh-navigation-tools/n-list b/plugins/zsh-navigation-tools/n-list index a852b083a..3be02191d 100644 --- a/plugins/zsh-navigation-tools/n-list +++ b/plugins/zsh-navigation-tools/n-list @@ -55,9 +55,9 @@ _nlist_cursor_visibility() { [ "$1" = "1" ] && { tput cvvis; tput cnorm } [ "$1" = "0" ] && tput civis elif [ "$_nlist_has_terminfo" = "1" ]; then - [ "$1" = "1" ] && { [ -n $terminfo[cvvis] ] && echo -n $terminfo[cvvis]; - [ -n $terminfo[cnorm] ] && echo -n $terminfo[cnorm] } - [ "$1" = "0" ] && [ -n $terminfo[civis] ] && echo -n $terminfo[civis] + [ "$1" = "1" ] && { [ -n "$terminfo[cvvis]" ] && echo -n "$terminfo[cvvis]"; + [ -n "$terminfo[cnorm]" ] && echo -n "$terminfo[cnorm]" } + [ "$1" = "0" ] && [ -n "$terminfo[civis]" ] && echo -n "$terminfo[civis]" fi }