diff options
Diffstat (limited to 'functions/utilities.zsh')
-rw-r--r-- | functions/utilities.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 7ca73b36..5ca5b431 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -66,7 +66,7 @@ function getRelevantItem() { local -a list local callback # Explicitly split the elements by whitespace. - list=${=1} + list=(${=1}) callback=$2 for item in $list; do @@ -149,7 +149,7 @@ function segmentShouldBeJoined() { local last_segment_index=$2 # Explicitly split the elements by whitespace. local -a elements - elements=${=3} + elements=(${=3}) local current_segment=${elements[$current_index]} local joined=false |