From 551fbeeab90505f0d2cafcf8c853ebc0f9e0dc0c Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 6 Nov 2000 17:26:39 +0000 Subject: Remove no-op test of $compstate[nmatches]. --- ChangeLog | 5 +++++ Completion/User/_rcs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 833aad9db..d4a3c9c1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-11-06 Bart Schaefer + + * 13127: Completion/User/_rcs: Test of $compstate[nmatches] was a + no-op, removed it. + 2000-11-05 Bart Schaefer * 13124: Functions/Misc/nslookup: Use "command nslookup" as it's diff --git a/Completion/User/_rcs b/Completion/User/_rcs index bbc8e02ac..1e0fa315a 100644 --- a/Completion/User/_rcs +++ b/Completion/User/_rcs @@ -1,8 +1,8 @@ #compdef co ci rcs -local nm=$compstate[nmatches] cmd="${words[1]:t}" ret=1 +local cmd="${words[1]:t}" ret=1 -if [[ $compstate[nmatches] -eq nm && -d RCS && $cmd != ci ]]; then +if [[ -d RCS && $cmd != ci ]]; then local rep expl rep=(RCS/*,v(:t:s/\,v//)) -- cgit 1.4.1