From 040625ef4426a6ffe0e057f1fbc3e91f1e9661de Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Sat, 12 Sep 2020 15:00:02 -0400 Subject: Fixed restoration of replace entry text after "Replace All". --- modules/textadept/find.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/find.lua') 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() -- cgit v1.2.3