From: Eric Wong Date: Tue, 5 Jan 2021 09:04:34 +0000 (+0000) Subject: lei: completion: fix filename completion X-Git-Tag: v1.7.0~1403 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=5e503fc272cb1d0afabc4724398b72e4ad5c4777;hp=f692276e2bcce22160248f27a905e517e706a952 lei: completion: fix filename completion "-o default" is what we want from "complete", "-o filename" just tells readline the result from the "_lei" function might be a filename and quote appropriately. --- diff --git a/contrib/completion/lei-completion.bash b/contrib/completion/lei-completion.bash index 5f47433b..0b82b109 100644 --- a/contrib/completion/lei-completion.bash +++ b/contrib/completion/lei-completion.bash @@ -8,4 +8,4 @@ _lei() { -- "${COMP_WORDS[COMP_CWORD]}")) return 0 } -complete -o filenames -o bashdefault -F _lei lei +complete -o default -o bashdefault -F _lei lei