diff options
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/find.lua | 1 |
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) |