mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
znt: more optimizing workarounds for 5.0.6 <= zsh < 5.2
This commit is contained in:
parent
357d57c541
commit
d30a501b1c
2 changed files with 7 additions and 3 deletions
|
|
@ -243,7 +243,9 @@ while (( 1 )); do
|
|||
|
||||
# Take all elements, including duplicates and non-selectables
|
||||
typeset +U list
|
||||
list=( "$@" )
|
||||
repeat 1; do
|
||||
list=( "$@" )
|
||||
done
|
||||
|
||||
# Remove non-selectable elements
|
||||
[ "$#NLIST_NONSELECTABLE_ELEMENTS" -gt 0 ] && for i in "${(nO)NLIST_NONSELECTABLE_ELEMENTS[@]}"; do
|
||||
|
|
@ -309,7 +311,9 @@ while (( 1 )); do
|
|||
|
||||
# Take all elements, including duplicates and non-selectables
|
||||
typeset +U list
|
||||
list=( "$@" )
|
||||
repeat 1; do
|
||||
list=( "$@" )
|
||||
done
|
||||
|
||||
# Remove non-selectable elements only when in uniq mode
|
||||
[ "$NLIST_IS_UNIQ_MODE" -eq 1 ] && [ "$#NLIST_NONSELECTABLE_ELEMENTS" -gt 0 ] &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue