fix(zsh-navigation-tools): quote some potential space-filled strings (#13567)

master
Eve 3 weeks ago committed by GitHub
parent 993afc8267
commit 45dd7d006a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      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
}

Loading…
Cancel
Save