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 7ef47ad commit 1724c4cCopy full SHA for 1724c4c
scripts/bash_pinyin_completion
@@ -68,6 +68,9 @@ _pinyin_completion() {
68
fi
69
done | bash-pinyin-completion-rs "$basepart" 2>/dev/null
70
)
71
+ if [ ${#pinyin_matched[@]} -ne 0 ]; then
72
+ compopt -o filenames 2>/dev/null
73
+ fi
74
75
76
if [[ -n "$dirpart" ]]; then
@@ -99,8 +102,8 @@ _pinyin_completion() {
99
102
done
100
103
COMPREPLY=( "${unique_compreply[@]}" )
101
104
- # fix space postfix
- if ((${#COMPREPLY[@]} == 1)) && [[ ${COMPREPLY[0]} != */ ]]; then
- compopt -o nospace 2>/dev/null
105
- fi
+ # # fix space postfix
106
+ # if ((${#COMPREPLY[@]} == 1)) && [[ ${COMPREPLY[0]} != */ ]]; then
107
+ # compopt -o nospace 2>/dev/null
108
+ # fi
109
}
0 commit comments