aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-19 13:01:49 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-19 13:01:49 -0400
commit0c10d1b7a38e84b11c9e54c29bfda080ce05b89c (patch)
tree5e740fb88a1ed3ba32c5b3484898558fbc292cce /modules
parent322e8af00ae62a42be1c6ca2a522c2ce6f5f418e (diff)
downloadtextadept-0c10d1b7a38e84b11c9e54c29bfda080ce05b89c.tar.gz
textadept-0c10d1b7a38e84b11c9e54c29bfda080ce05b89c.zip
Make `ui.highlight_words` a multi-option setting.
Highlighting the current word could be useful instead of just the selected word.
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