File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,7 @@ _pinyin_completion() {
67
67
else
68
68
mapfile -t pinyin_matched < <(
69
69
compgen -f -- |
70
- while IFS= read -r line; do
71
- if [ -d " $line " ]; then
72
- printf " %s/\n" " ${line%%/ } "
73
- else
74
- printf " %s\n" " $line "
75
- fi
76
- done | bash-pinyin-completion-rs " $basepart " 2> /dev/null
70
+ bash-pinyin-completion-rs " $basepart " 2> /dev/null
77
71
)
78
72
if [ ${# pinyin_matched[@]} -ne 0 ]; then
79
73
compopt -o filenames 2> /dev/null
Original file line number Diff line number Diff line change @@ -76,13 +76,7 @@ _pinyin_completion() {
76
76
else
77
77
mapfile -t pinyin_matched < <(
78
78
compgen -f -- |
79
- while IFS= read -r line; do
80
- if [ -d " $line " ]; then
81
- printf " %s/\n" " ${line%%/ } "
82
- else
83
- printf " %s\n" " $line "
84
- fi
85
- done | bash-pinyin-completion-rs " $basepart " 2> /dev/null
79
+ bash-pinyin-completion-rs " $basepart " 2> /dev/null
86
80
)
87
81
if [ ${# pinyin_matched[@]} -ne 0 ]; then
88
82
compopt -o filenames 2> /dev/null
You can’t perform that action at this time.
0 commit comments