From 74c4a9c9bef38871bdab5987822e3ea55d8d85a1 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 4 Mar 2008 11:48:43 +0000 Subject: unposted: improved handling of perforce @label and @date --- ChangeLog | 5 +++++ Completion/Unix/Command/_perforce | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad3712c73..32cee6ae4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-04 Peter Stephenson + + * unposted: Completion/Unix/Command/_perforce: ignore range + limiters >, >=, =, <, <= after @ in labels and dates, too. + 2008-03-03 Peter Stephenson * 24673: Test/D07multibyte.ztst: another attempt to sort diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index 6b8a63c1b..271521141 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -708,7 +708,7 @@ _perforce_counter_values() { (( $+functions[_perforce_dates] )) || _perforce_dates() { # Only useful in a file spec after `@'. - compset -P '*@' + compset -P '*@(|\\\<|\\\>)(|=)' # Date/time now in format required by Perforce. local now="$(date +%Y:%m:%d:%T)" name prefix @@ -1351,7 +1351,7 @@ _perforce_labels() { argv=($argv[1,-2]) # Completing after `@'. file=${${(Q)PREFIX}%%@*} - compset -P '*@' + compset -P '*@(|\\\<|\\\>)(|=)' fi ll=(${${(f)"$(_perforce_call_p4 labels labels ${file:+\$file})"}//(#b)Label\ ([^[:blank:]]##)\ (*)/$match[1]:$match[2]}) -- cgit 1.4.1