Skip to content

Commit

Permalink
bash: treat results from -odefault as filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
lincheney committed Nov 9, 2023
1 parent 8d8956d commit f6f83c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/fzf-bash-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ _fzf_bash_completion_complete() {
# don't double invoke fzf
if [ -n "${compgen_opts[*]}" ]; then
if [[ "$compl_function" != _fzf_*_completion ]] || ! command -v "$compl_function" &>/dev/null; then
# these are all filenames
printf 'compl_filenames=1\n'>&"${__evaled}"
compgen "${compgen_opts[@]}" -- "$2" \
| _fzf_bash_completion_dir_marker \
| compl_filenames=1 _fzf_bash_completion_quote_filenames "$@"
Expand Down

0 comments on commit f6f83c8

Please sign in to comment.