Skip to content

Commit 58d5176

Browse files
committed
fix(aspell): use _comp_expand_glob against unexpected splitting
1 parent b63d25a commit 58d5176

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

completions/aspell

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ _comp_cmd_aspell__dictionary()
55
local datadir aspell=$1
66
datadir=$("$aspell" config data-dir 2>/dev/null || echo /usr/lib/aspell)
77
# First, get aliases (dicts dump does not list them)
8-
COMPREPLY=($datadir/*.alias)
9-
if ((${#COMPREPLY[@]})); then
8+
if _comp_expand_glob COMPREPLY '"$datadir"/*.alias'; then
109
COMPREPLY=("${COMPREPLY[@]%.alias}")
1110
COMPREPLY=("${COMPREPLY[@]#$datadir/}")
1211
fi

0 commit comments

Comments
 (0)