aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/find.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 231159e2..e1e18e8e 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -204,6 +204,7 @@ local function find(text, next, flags, no_wrap, wrapped)
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()
+ repl_text = ui.find.replace_entry_text -- save for ui.find.focus()
-- If nothing was found, wrap the search.
if pos == -1 and not no_wrap then