We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9a78c commit 56f66e2Copy full SHA for 56f66e2
scripts/bash_pinyin_completion
@@ -84,7 +84,7 @@ _pinyin_completion() {
84
# merge result
85
local -a old_candidates=("${COMPREPLY[@]}")
86
COMPREPLY=("${old_candidates[@]}" "${pinyin_matched[@]}")
87
- COMPREPLY=($(printf "%s\n" "${COMPREPLY[@]}" | awk '!seen[$0]++'))
+ mapfile -t COMPREPLY < <(printf "%s\n" "${COMPREPLY[@]}" | awk '!seen[$0]++')
88
89
# fix space postfix
90
if ((${#COMPREPLY[@]} == 1)) && [[ ${COMPREPLY[0]} != */ ]]; then
0 commit comments