Merge pull request #208 from dritter/fix_joining

Fix joining segments from #186
This commit is contained in:
Ben Hilburn 2016-02-06 11:52:55 -08:00
commit 1a05542901
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ function getRelevantItem() {
local -a list local -a list
local callback local callback
# Explicitly split the elements by whitespace. # Explicitly split the elements by whitespace.
list=${=1} list=(${=1})
callback=$2 callback=$2
for item in $list; do for item in $list; do
@ -146,7 +146,7 @@ function segmentShouldBeJoined() {
local last_segment_index=$2 local last_segment_index=$2
# Explicitly split the elements by whitespace. # Explicitly split the elements by whitespace.
local -a elements local -a elements
elements=${=3} elements=(${=3})
local current_segment=${elements[$current_index]} local current_segment=${elements[$current_index]}
local joined=false local joined=false