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". --- test/test.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index 6b1c4b52..425bede6 100644 --- a/test/test.lua +++ b/test/test.lua @@ -2402,6 +2402,10 @@ function test_ui_find_replace_text_save_restore() assert(ui.find.replace_entry_text ~= 'bar', 'filter entry text not set') ui.find.focus{in_files = false} -- simulate activating "Find" assert_equal(ui.find.replace_entry_text, 'bar') + ui.find.replace_entry_text = 'baz' + ui.find.replace_all() + ui.find.focus() -- simulate activating "Find" + assert_equal(ui.find.replace_entry_text, 'baz') end function test_ui_find_replace_all() -- cgit v1.2.3