aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 796c8434..53fb8498 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -172,7 +172,10 @@ local function find_incremental(text, next, anchor)
next and 1 or -1)
end
buffer:goto_pos(incremental_start or 0)
- find(text, next, M.match_case and buffer.FIND_MATCHCASE or 0)
+ -- Note: even though `events.FIND` does not support a flags parameter, the
+ -- default handler has one, so make use of it.
+ events.emit(events.FIND, text, next,
+ M.match_case and buffer.FIND_MATCHCASE or 0)
end
---