aboutsummaryrefslogtreecommitdiff
path: root/test/test.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 /test/test.lua
parentf13b1bbde296c839c4b2fc3081a461cb5590f82c (diff)
downloadtextadept-040625ef4426a6ffe0e057f1fbc3e91f1e9661de.tar.gz
textadept-040625ef4426a6ffe0e057f1fbc3e91f1e9661de.zip
Fixed restoration of replace entry text after "Replace All".
Diffstat (limited to 'test/test.lua')
-rw-r--r--test/test.lua4
1 files changed, 4 insertions, 0 deletions
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()