[textadept] Bug in replace with captures

From: mitchell <c....at.caladbolg.net>
Date: Tue, 4 Oct 2011 12:48:29 -0400 (Eastern Daylight Time)

Hi,

I introduced a bug in 4.1 dealing with replace with Lua captures (%n).

Please replace

       rtext = rtext:gsub('%%'..i, captures[i]:gsub('%%', '%%%%'))

with

       rtext = rtext:gsub('%%'..i, (captures[i]:gsub('%%', '%%%%')))

in modules/textadept/find.lua:239

This will be fixed in the next release.

mitchell
Received on Tue 04 Oct 2011 - 12:48:29 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:23:27 EST