From 113137d4fe3f71fa13f2d3387bb2f8801134de26 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 23 May 2014 22:22:01 -0400 Subject: Fixed bug related to captures from previous searches; modules/textadept/find.lua --- modules/textadept/find.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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) -- cgit v1.2.3