aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
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()