aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-10-04 20:48:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-10-04 20:48:44 -0400
commit69c46537c92d39fce84ff5a85e4e0e3995770389 (patch)
tree8c85102597acac7fda6c35403e6f11b2d6482e27
parent41a769385f00549a2136cefbdfa0819278aaba81 (diff)
downloadtextadept-69c46537c92d39fce84ff5a85e4e0e3995770389.tar.gz
textadept-69c46537c92d39fce84ff5a85e4e0e3995770389.zip
Fixed bug with %n in replace introduced by r960; modules/textadept/find.lua
-rw-r--r--modules/textadept/find.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 989c84c8..d1d75321 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -236,7 +236,7 @@ local function replace(rtext)
local captures = find.captures
if captures then
for i = 1, #captures do
- rtext = rtext:gsub('%%'..i, captures[i]:gsub('%%', '%%%%'))
+ rtext = rtext:gsub('%%'..i, (captures[i]:gsub('%%', '%%%%')))
end
end
local ok, rtext = pcall(rtext.gsub, rtext, '%%(%b())', run)