aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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 7442276f..2a107b7c 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -127,7 +127,7 @@ local function find(text, next, flags, no_wrap, wrapped)
-- Highlight all occurrences first, otherwise regex tags will be overwritten.
buffer.indicator_current = ui.INDIC_HIGHLIGHT
buffer:indicator_clear_range(1, buffer.length)
- if ui.highlight_words and #text > 1 then
+ if ui.highlight_words ~= ui.HIGHLIGHT_NONE and #text > 1 then
buffer.search_flags = flags
buffer:target_whole_document()
while buffer:search_in_target(text) ~= -1 do