Skip to content

Commit 5cf3216

Browse files
committed
fix: duplicated //
Signed-off-by: wxiwnd <[email protected]>
1 parent 212a579 commit 5cf3216

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

scripts/bash_pinyin_completion

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,7 @@ _pinyin_completion() {
6767
else
6868
mapfile -t pinyin_matched < <(
6969
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
7771
)
7872
if [ ${#pinyin_matched[@]} -ne 0 ]; then
7973
compopt -o filenames 2>/dev/null

scripts/bash_pinyin_completion_debug

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ _pinyin_completion() {
7676
else
7777
mapfile -t pinyin_matched < <(
7878
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
8680
)
8781
if [ ${#pinyin_matched[@]} -ne 0 ]; then
8882
compopt -o filenames 2>/dev/null

0 commit comments

Comments
 (0)