mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
znt: optimize heap usage for older Zsh's (e.g. 5.0.8)
This commit is contained in:
parent
89205f90e5
commit
c793baeadd
2 changed files with 14 additions and 3 deletions
|
|
@ -224,7 +224,11 @@ zcurses timeout main -1
|
|||
key=""
|
||||
keypad=""
|
||||
|
||||
list=( "$@" )
|
||||
# This loop makes script faster on some Zsh's (e.g. 5.0.8)
|
||||
repeat 1; do
|
||||
list=( "$@" )
|
||||
done
|
||||
|
||||
last_element="$#list"
|
||||
|
||||
while (( 1 )); do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue