From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21076 invoked by alias); 19 Mar 2013 21:52:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31169 Received: (qmail 10385 invoked from network); 19 Mar 2013 21:52:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1363729576; bh=vS4gNiP6YA5UCVaxPqczRqODociSGkkCo8Ym0SntPLM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:From:To:Subject:Date:Message-ID; b=MKwVmgMpn7AOLHkUodMf1fWaW9MN8e0ay2Iw10e6p/XIxDvpwfP3a2L6tEFNGdKr5UAa/GtOfVM+J5GFMnEfmcrSKpEQpI+QSTUrfdK6pLdxHN7GitlXoHfSypSv5kNHxSgoGsP0ejbvM2nBKBUHeXRU2lCYgj1YWhNwmTSlx7g= X-Yahoo-Newman-Id: 189890.25971.bm@smtp112.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rURcQhAVM1m4k1Bj906AsfJMj1aXXQTfHi47Lr6HCTbzDNx uhBe3M9GjzM3yoo4FIFAHspva2iZm5Go3t1ef3L2OvS4RfYny2j1RFFC1SEZ r1uoNXEyFgEOgYSbC84LSbvTLPdJik4L9gAXFm0qXDXq.uPBQiBft2xRcBf. cQVdzy5wOUxfZAZa7NRgXZBmn2p.wW8q7fCl1ApjcpxrMWHROCp0y3.TKVFi jU9OLPB_UDj5.4qpRqdCW6hsW2fUZV7s.08f0zAWYa2RNuQoeBAniFY0dKuk Q41ImJcWsyQGWptRjILHn1xqBvcgXOeOnwKm.AiyYGqQL1sCUNgkxbExgJ1T A_9_6td.DzyDJdxEp5EuRqAEcg4tTSyUN09lKSTi3MYJTiyhZjfDe4UVWz1x ZEGvsWqxaXF8BZV7dFwHmTJUr6bzPPcQqUp6ajRcfyc2QvQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- X-Rocket-Received: from kiddle.eu (okiddle@94.79.136.60 with plain) by smtp112.mail.ird.yahoo.com with SMTP; 19 Mar 2013 14:46:16 -0700 PDT From: Oliver Kiddle To: Zsh workers Subject: PATCH: remove duplicated local in _x_utils Date: Tue, 19 Mar 2013 22:46:14 +0100 Message-ID: <10490.1363729574@thecus.kiddle.eu> I noticed that completion after xhost + was outputting expl=''. This is because it is declared local twice in _x_utils so the second time it prints the value. This removes the duplication. Oliver Index: Completion/X/Command/_x_utils =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_x_utils,v retrieving revision 1.5 diff -u -r1.5 _x_utils --- Completion/X/Command/_x_utils 9 Dec 2011 15:58:35 -0000 1.5 +++ Completion/X/Command/_x_utils 19 Mar 2013 21:45:39 -0000 @@ -69,7 +69,7 @@ '-rv' ;; xhost) - local expl type ret=1 tmp match + local type tmp match if compset -P '-'; then tmp=(${(f)"$(xhost)"})