_hledger_compreply_query: minor refactor

This commit is contained in:
Vladimir Zhelezov 2020-12-13 06:45:27 +01:00
parent 0361c81da2
commit e2b2c2fb2e
2 changed files with 2 additions and 2 deletions

View File

@ -300,7 +300,7 @@ _hledger_compreply_query() {
*) return 1 ;; *) return 1 ;;
esac esac
_get_comp_words_by_ref -n '<=>' -c cur _get_comp_words_by_ref -n '<=>' -c cur
_hledger_compreply "$(compgen -P "$query" -W "$wordlist" -- "${cur#*:}")" _hledger_compreply "$(compgen -P "$query" -W "$wordlist" -- "$match")"
return 0 return 0
;; ;;
esac esac

View File

@ -300,7 +300,7 @@ _hledger_compreply_query() {
*) return 1 ;; *) return 1 ;;
esac esac
_get_comp_words_by_ref -n '<=>' -c cur _get_comp_words_by_ref -n '<=>' -c cur
_hledger_compreply "$(compgen -P "$query" -W "$wordlist" -- "${cur#*:}")" _hledger_compreply "$(compgen -P "$query" -W "$wordlist" -- "$match")"
return 0 return 0
;; ;;
esac esac