diff options
Diffstat (limited to 'modules/textadept/find.lua')
-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 9654c988..c5c3118d 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -201,6 +201,7 @@ local function find(text, next, flags, no_wrap, wrapped) local f = next and buffer.search_next or buffer.search_prev local pos = f(buffer, flags, text) view:ensure_visible_enforce_policy(buffer:line_from_position(pos)) + view:scroll_range(buffer.anchor, buffer.current_pos) view:vertical_center_caret() -- Track find text and found text for "replace all" and incremental find. find_text, found_text = text, buffer:get_sel_text() |