From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1322 invoked by alias); 11 Jun 2013 12:49:51 -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: 31470 Received: (qmail 12999 invoked from network); 11 Jun 2013 12:49:46 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at bunkus.org designates 78.46.80.115 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bunkus.org; s=mail2013040101; t=1370954984; bh=fgbDqrc7fOLnvMiMD7PAddjZnRaUK7iWVbSDJbsXbEo=; h=Date:Subject:From:To; b=bke+8p2oQ4mIKovE/Ka3UZeAjtm6Cc8XEz5Evapc/N121N8PZHaiwVdr0OzacEq7E bBH2fusUibWVlu37V1MGCrBRkueLMiDFoE+98GFyrwk9Y4KsVpdFMWtOxmjSFInJ6f rVPtzCXn0T8W+nTUoUhOpCCpWdotojpGYuBRe9GY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=fgbDqrc7fOLnvMiMD7PAddjZnRaUK7iWVbSDJbsXbEo=; b=feZB8gYnBibmjHmtM2DadqNY0lEZyI21Dw0EbFL8l498motmve8QQLcPOic8AK9yAI brmfOdENwQqLbhLezUDrAucrMEOYo+u5UEAfOAKi5YJ31dz0R1FQG+nPSViTGdVQXSYm KYHDgQaE3oyfaJehFevY9IIFJko0wJn6uC4w2fGd/G6cZ0mA/+FWSQgw9YcmPhoTDt5Z 4lweUAt3Zy2QbHT8DisbqAy0KJ1pOY5RbCrOpDhqkRPdl0p3GWjEaJ2a/+o23p7cwTtt P2m/l87NlXPCGDOOscffC8bEtf2Ng3YCoI8Tues+dRkAuUsP4hQNCgTCXLkl14fjS1t6 1Ccg== MIME-Version: 1.0 X-Received: by 10.66.100.231 with SMTP id fb7mr18262715pab.162.1370954982843; Tue, 11 Jun 2013 05:49:42 -0700 (PDT) Date: Tue, 11 Jun 2013 14:49:42 +0200 Message-ID: Subject: replace-regex widget not replacing semicolons From: Moritz Bunkus To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hey, I'm using replace-regex bound to ALT+r, and it usually works quite well. Today I noticed that it doesn't replace semicolons, though. It looks like an off-by-one error when removing the char from the buffer. For example, when I enter $ asd ; qwe and replace ; by any single char (e.g. "+") then the line stays exactly as it is. However, if I try to replace it by two or more chars (e.g. "&&") then one of the replaced chars is missing and the semicolon stays in its place, like this: $ asd &; qwe How to reproduce: chai-latte$ zsh --norcs chai-latte% autoload regexp-replace chai-latte% autoload replace-string chai-latte% zle -N replace-regex replace-string chai-latte% bindkey "^[r" replace-regex chai-latte% asd ; qwe Now hit ALT+r, enter ; and &&, see the output changed to: chai-latte% asd &; qwe Kind regards, mosu