Skip to content

Commit 45dd7d0

Browse files
authored
fix(zsh-navigation-tools): quote some potential space-filled strings (ohmyzsh#13567)
1 parent 993afc8 commit 45dd7d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • plugins/zsh-navigation-tools

plugins/zsh-navigation-tools/n-list

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ _nlist_cursor_visibility() {
5555
[ "$1" = "1" ] && { tput cvvis; tput cnorm }
5656
[ "$1" = "0" ] && tput civis
5757
elif [ "$_nlist_has_terminfo" = "1" ]; then
58-
[ "$1" = "1" ] && { [ -n $terminfo[cvvis] ] && echo -n $terminfo[cvvis];
59-
[ -n $terminfo[cnorm] ] && echo -n $terminfo[cnorm] }
60-
[ "$1" = "0" ] && [ -n $terminfo[civis] ] && echo -n $terminfo[civis]
58+
[ "$1" = "1" ] && { [ -n "$terminfo[cvvis]" ] && echo -n "$terminfo[cvvis]";
59+
[ -n "$terminfo[cnorm]" ] && echo -n "$terminfo[cnorm]" }
60+
[ "$1" = "0" ] && [ -n "$terminfo[civis]" ] && echo -n "$terminfo[civis]"
6161
fi
6262
}
6363

0 commit comments

Comments
 (0)