aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-12 15:00:02 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-12 15:00:02 -0400
commit040625ef4426a6ffe0e057f1fbc3e91f1e9661de (patch)
tree7cb5adbaac8f3b8b1140417227dd95d754156549 /modules/textadept/find.lua
parentf13b1bbde296c839c4b2fc3081a461cb5590f82c (diff)
downloadtextadept-040625ef4426a6ffe0e057f1fbc3e91f1e9661de.tar.gz
textadept-040625ef4426a6ffe0e057f1fbc3e91f1e9661de.zip
Fixed restoration of replace entry text after "Replace All".
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 84590c32..7d04d694 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -403,7 +403,7 @@ events.connect(events.REPLACE_ALL, function(ftext, rtext)
end
local EOF = replace_in_sel and e == buffer.length + 1 -- no indicator at EOF
local f = not M.regex and buffer.replace_target or buffer.replace_target_re
- rtext = unescape(rtext)
+ rtext, repl_text = unescape(rtext), rtext -- save for ui.find.focus()
-- Perform the search and replace.
buffer:begin_undo_action()