From 9b8176a659443094762f242c854c4af7afd3d0ec Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 25 Feb 2002 09:16:25 +0000 Subject: make _message inhibit insertion of matches unless there are faked ones (16710) --- ChangeLog | 4 ++++ Completion/Base/Core/_message | 2 ++ Test/Y03arguments.ztst | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 758b034eb..b2fb2ba43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-02-25 Sven Wischnowsky + * 16710: Completion/Base/Core/_message, Test/Y03arguments.ztst: + make _message inhibit insertion of matches unless there are + faked ones + * 16708: Completion/Base/Core/_message, Completion/Base/Utility/_guard, Completion/Unix/Command/_grep, Completion/Unix/Command/_pbm, Completion/Unix/Command/_pine, diff --git a/Completion/Base/Core/_message b/Completion/Base/Core/_message index 2ad778082..13c83989f 100644 --- a/Completion/Base/Core/_message +++ b/Completion/Base/Core/_message @@ -18,6 +18,8 @@ if [[ "$1" = -e ]]; then ret=0 done + (( $compstate[nmatches] )) || compstate[insert]= + return ret fi diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index ba9188357..a62e34a7e 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -91,7 +91,7 @@ comptest $'tst -\t' 0:argument beginning with minus >line: {tst -}{} ->MESSAGE:{arg} +>DESCRIPTION:{arg} >DESCRIPTION:{option} >NO:{-x} -- cgit 1.4.1