aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-07 22:34:59 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-09-07 22:34:59 -0400
commitb7d89ca670e4dff664dda6d0d5c98b65eaafdb8d (patch)
tree0025480de21b5247643da85de1dffcd7aa7e4d97 /test
parent03da1d1690c4a9b9d6eb5087554cdf01da3a7f34 (diff)
downloadtextadept-b7d89ca670e4dff664dda6d0d5c98b65eaafdb8d.tar.gz
textadept-b7d89ca670e4dff664dda6d0d5c98b65eaafdb8d.zip
Fixed find highlighting test failure.
`ui.find.highlight_all_matches` was changed to `false` by default, so enable it for this test.
Diffstat (limited to 'test')
-rw-r--r--test/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua
index c4693ea3..6b1c4b52 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -2229,6 +2229,8 @@ function test_ui_find_incremental()
end
function test_ui_find_incremental_highlight()
+ local highlight_all_matches = ui.find.highlight_all_matches
+ ui.find.highlight_all_matches = true
buffer.new()
buffer:set_text(table.concat({
' foo',
@@ -2256,6 +2258,7 @@ function test_ui_find_incremental_highlight()
end
ui.find.find_entry_text = ''
ui.find.incremental = false
+ ui.find.highlight_all_matches = highlight_all_matches
buffer:close(true)
end