File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ __fzf_generic_path_completion() {
181
181
[[ -z " $dir " ]] && dir=' .'
182
182
[[ " $dir " != " /" ]] && dir=" ${dir/% \/ / } "
183
183
matches=$( eval " $1 $( printf %q " $dir " ) " | FZF_DEFAULT_OPTS=" --height ${FZF_TMUX_HEIGHT:- 40% } --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS $2 " __fzf_comprun " $4 " -q " $leftover " | while read -r item; do
184
- printf " %q$3 " " $item "
184
+ printf " %q " " ${ item% $3 } $3 "
185
185
done)
186
186
matches=${matches% }
187
187
[[ -z " $3 " ]] && [[ " $__fzf_nospace_commands " = * " ${COMP_WORDS[0]} " * ]] && matches=" $matches "
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ __fzf_generic_path_completion() {
146
146
[ -z " $dir " ] && dir=' .'
147
147
[ " $dir " != " /" ] && dir=" ${dir/% \/ / } "
148
148
matches=$( eval " $compgen $( printf %q " $dir " ) " | FZF_DEFAULT_OPTS=" --height ${FZF_TMUX_HEIGHT:- 40% } --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS " __fzf_comprun " $cmd " ${(Q)${(Z+n+)fzf_opts} } -q " $leftover " | while read item; do
149
- echo -n " ${(q)item} $suffix "
149
+ item=" ${item% $suffix } $suffix "
150
+ echo -n " ${(q)item} "
150
151
done)
151
152
matches=${matches% }
152
153
if [ -n " $matches " ]; then
You can’t perform that action at this time.
0 commit comments