aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-08-27 19:54:49 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-08-27 19:54:49 -0400
commit6921a21d30a4b9f35fa1b8d06242deebab49dad0 (patch)
tree78a09021298a4ae21fbb2e6cb492efababe4f372 /modules/textadept/find.lua
parent39a2cab4bfe90e17a4ca0970acb758b0238b12de (diff)
downloadtextadept-6921a21d30a4b9f35fa1b8d06242deebab49dad0.tar.gz
textadept-6921a21d30a4b9f35fa1b8d06242deebab49dad0.zip
Fixed restoring find & replace pane's replace text outside of "Find in Files".
Diffstat (limited to 'modules/textadept/find.lua')
-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