From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23064 invoked by alias); 1 Jun 2010 21:37:25 -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: 27986 Received: (qmail 25436 invoked from network); 1 Jun 2010 21:37:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=zQvFfi0Gwej7MdI64wUaGoiy9Vk7kKOClOSpzIdWYw8=; b=dSEOoUdq7l4EaQ2goza2+N95z/VHInwL+iA24Hxc8soYCeuEelDlzLNR4PpnbG3K8z 8XcAH8zUEOGC8CciIfIkod1Qd5VIQLti5MtaqfWh8T4gPfel80AzPBF+afHIKoqkD8x5 rMcCrcFsaNUns4sVdLgV7ReqpMg8KX4wZ5Ie4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fB87CaFMam+diWcgo/WIMZqycsYNjQFbBHafDn3UH1AVjz4OsIbXynaKCz/waohbrK FCkNE+fKOse8ONaUZVRLcG12ksy1BAxEU3ty585dOXbsZjGSgldMrymnbaTZmnQb0uOa VImjZq/UUDJl+fjhVn0/zghGB8zAroAHGjDiM= MIME-Version: 1.0 In-Reply-To: <20100601220700.6e7be66e@pws-pc> References: <20100601220700.6e7be66e@pws-pc> Date: Tue, 1 Jun 2010 23:30:58 +0200 Message-ID: Subject: Re: %F{1} outputs code twice, %F{red} doesn't From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 1 June 2010 23:07, Peter Stephenson wrote: > On Fri, 28 May 2010 00:26:49 +0200 > Mikael Magnusson wrote: >> % print -P a%F{1}a|cat -v >> a^[[38;5;1m^[[38;5;1ma >> % echo ${(%V):-a%F{1}a} >> a^[[38;5;1m^[[38;5;1ma >> >> (wasn't sure if those use the same code path) >> >> % print -P a%F{red}a|cat -v >> a^[[38;5;1ma > > I'm not sure how you get it duplicated, but it does look to me like it's > trying to do the same thing two ways, one with termcap, and one with > ANSI sequences, or whatever you've told it to use instead via > zle_highlight. The trick is it only happens with "1", not with "red". The patch appears to fix it. -- Mikael Magnusson