diff options
author | 2014-05-23 22:22:01 -0400 | |
---|---|---|
committer | 2014-05-23 22:22:01 -0400 | |
commit | 113137d4fe3f71fa13f2d3387bb2f8801134de26 (patch) | |
tree | e497f14b73dad205f5f012c0e5452b4921e97115 /modules | |
parent | f7296a1f9acf04c91420a9bd011f3726f394eaf7 (diff) | |
download | textadept-113137d4fe3f71fa13f2d3387bb2f8801134de26.tar.gz textadept-113137d4fe3f71fa13f2d3387bb2f8801134de26.zip |
Fixed bug related to captures from previous searches; modules/textadept/find.lua
Diffstat (limited to 'modules')
-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) |