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 9ddb44b commit 261c302Copy full SHA for 261c302
scripts/bash_pinyin_completion
@@ -74,8 +74,14 @@ _pinyin_completion() {
74
fi
75
76
if [[ -n "$dirpart" ]]; then
77
+ local sep="/"
78
+ # dirpart is root
79
+ if [[ "$dirpart" == "/" ]]; then
80
+ sep=""
81
+ fi
82
+
83
for i in "${!pinyin_matched[@]}"; do
- pinyin_matched[$i]="${dirpart}/${pinyin_matched[$i]}"
84
+ pinyin_matched[$i]="${dirpart}${sep}${pinyin_matched[$i]}"
85
done
86
87
0 commit comments