From a22f4ea8ba963d8bf5aff5a4bebad8a7c2a9ead6 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sat, 18 Jun 2016 02:04:39 +0200 Subject: 38713: don't add calendar matches when not immediately entering menu selection --- Completion/Unix/Type/_dates | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Unix/Type/_dates b/Completion/Unix/Type/_dates index 83397b45a..e4fa62e48 100644 --- a/Completion/Unix/Type/_dates +++ b/Completion/Unix/Type/_dates @@ -9,7 +9,7 @@ # max-matches-length : maximum number or percentage of lines to use for # completion listing, if both are specified, the # lowest takes precedence. -# format : override date format +# date-format : override date format local -a disp cand expl local userformat format spacer=1 spacing month monstart skip match @@ -37,6 +37,7 @@ _tags dates || return 0 _comp_mesg=yes _description -2V -x dates expl date compadd "${@:/-X/-x}" "$expl[@]" - +[[ -z $MENUSELECT && $WIDGET != menu-select ]] && return [[ -n $PREFIX$SUFFIX ]] && return 0 (( rows )) || return 0 compstate[list]='packed rows' -- cgit 1.4.1