aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-10-23 14:33:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-10-23 14:33:17 -0400
commit4ab8ee76c30fc585b7fb1bdde10b2a93b8fa3ca4 (patch)
tree93c1b490f59b924add13a8949426230ae2715df6 /modules/textadept/find.lua
parent1ecceb74c801769638351365a535222a6ea587d0 (diff)
downloadtextadept-4ab8ee76c30fc585b7fb1bdde10b2a93b8fa3ca4.tar.gz
textadept-4ab8ee76c30fc585b7fb1bdde10b2a93b8fa3ca4.zip
Make find and menu command selection more macro-friendly.
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
---