aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-05-23 22:22:01 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-05-23 22:22:01 -0400
commit113137d4fe3f71fa13f2d3387bb2f8801134de26 (patch)
treee497f14b73dad205f5f012c0e5452b4921e97115 /modules/textadept
parentf7296a1f9acf04c91420a9bd011f3726f394eaf7 (diff)
downloadtextadept-113137d4fe3f71fa13f2d3387bb2f8801134de26.tar.gz
textadept-113137d4fe3f71fa13f2d3387bb2f8801134de26.zip
Fixed bug related to captures from previous searches; modules/textadept/find.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 4639c42e..dda00c9a 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -137,6 +137,7 @@ local function find_(text, next, flags, no_wrap, wrapped)
-- Scintilla search.
buffer:search_anchor()
pos = buffer['search_'..(next and 'next' or 'prev')](buffer, flags, text)
+ M.captures = nil -- clear captures from any previous Lua pattern searches
elseif flags < 16 then
-- Lua pattern search.
local patt = text:gsub('\\[abfnrtv\\]', escapes)