mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
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:
parent
88659ed193
commit
12c4a98945
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue