Edit comments

This commit is contained in:
Vladimir Zhelezov 2020-12-13 12:18:05 +01:00
parent 05d483494b
commit 1bbf04d310
2 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,6 @@ _hledger_completion_function() {
_hledger_compreply "$( _hledger_compreply "$(
_hledger_compgen "$_hledger_complist_generic_options" _hledger_compgen "$_hledger_complist_generic_options"
)" )"
# Suspend space on completion of long options requiring an argument # Suspend space on completion of long options requiring an argument
[[ ${COMPREPLY[0]} == --*= ]] && compopt -o nospace [[ ${COMPREPLY[0]} == --*= ]] && compopt -o nospace
else else
@ -98,7 +97,7 @@ _hledger_completion_function() {
esac esac
# Offer query filters and accounts for the rest # Offer query filters and accounts for the rest
# Do not sort. Keep options, accounts and query filters grouped separately # Do not sort. Keep accounts and query filters grouped separately
compopt -o nosort -o nospace compopt -o nosort -o nospace
_hledger_compreply "$(_hledger_compgen "$_hledger_complist_query_filters")" _hledger_compreply "$(_hledger_compgen "$_hledger_complist_query_filters")"
if [[ -z $cur ]]; then if [[ -z $cur ]]; then

View File

@ -54,7 +54,6 @@ _hledger_completion_function() {
_hledger_compreply "$( _hledger_compreply "$(
_hledger_compgen "$_hledger_complist_generic_options" _hledger_compgen "$_hledger_complist_generic_options"
)" )"
# Suspend space on completion of long options requiring an argument # Suspend space on completion of long options requiring an argument
[[ ${COMPREPLY[0]} == --*= ]] && compopt -o nospace [[ ${COMPREPLY[0]} == --*= ]] && compopt -o nospace
else else
@ -98,7 +97,7 @@ _hledger_completion_function() {
esac esac
# Offer query filters and accounts for the rest # Offer query filters and accounts for the rest
# Do not sort. Keep options, accounts and query filters grouped separately # Do not sort. Keep accounts and query filters grouped separately
compopt -o nosort -o nospace compopt -o nosort -o nospace
_hledger_compreply "$(_hledger_compgen "$_hledger_complist_query_filters")" _hledger_compreply "$(_hledger_compgen "$_hledger_complist_query_filters")"
if [[ -z $cur ]]; then if [[ -z $cur ]]; then