From 637ab8855dce018fe2c64b13ee7ee892df35b56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Sch=C3=B6ttl?= Date: Fri, 11 Jan 2019 23:59:28 +0100 Subject: [PATCH] Bugfix for --file=... case --- shell-completion/hledger-completion.bash.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell-completion/hledger-completion.bash.m4 b/shell-completion/hledger-completion.bash.m4 index a6623eff8..7e2360384 100644 --- a/shell-completion/hledger-completion.bash.m4 +++ b/shell-completion/hledger-completion.bash.m4 @@ -37,6 +37,7 @@ hledgerCompletionFunction() { if [[ -z $subcommand ]]; then declare completeFiles filenameSoFar + echo "$precedingWord, $wordToComplete" case $wordToComplete in --file=*|--rules-file=*) completeFiles=1 @@ -48,6 +49,10 @@ hledgerCompletionFunction() { completeFiles=1 filenameSoFar=$wordToComplete ;; + =) + completeFiles=1 + filenameSoFar=$wordToComplete + ;; esac if [[ -n $completeFiles ]]; then