Skip to content

Commit e15a2ac

Browse files
committed
update selector
1 parent 1861a8b commit e15a2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/selector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
: ${SELECTOR_CASEI:=false}
99

1010
# split _items lines to index 1 array _aitems
11-
type mapfile >/dev/null 2>&1 && _items2array() { mapfile -t -O 1 _aitems <<<"$_items"; } || {
11+
type mapfile >/dev/null 2>&1 && _items2array() { _aitems=(); mapfile -t -O 1 _aitems <<<"$_items"; } || {
1212
[ "$ZSH_VERSION" ] && _items2array() { set -A _aitems ${(f)_items}; } || _items2array() {
1313
# ksh/bash3
1414
typeset o="$IFS"

0 commit comments

Comments
 (0)