aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2016-02-06 22:52:55 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-02-06 22:52:55 +0300
commit1a05542901d32ef897090915f0daee7d2300eb42 (patch)
tree69cf63ce2e2b6e4ea2955402c52e2d27417a23eb /functions
parent9e191d43058d66fd52d1c33a244523600848bd25 (diff)
parente9da3d5146d5cf881249fa229e27b60428516aab (diff)
Merge pull request #208 from dritter/fix_joining
Fix joining segments from #186
Diffstat (limited to 'functions')
-rw-r--r--functions/utilities.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index 079e675a..dcbca3c6 100644
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -63,7 +63,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
@@ -146,7 +146,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