From 0c10d1b7a38e84b11c9e54c29bfda080ce05b89c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 19 Jul 2020 13:01:49 -0400 Subject: Make `ui.highlight_words` a multi-option setting. Highlighting the current word could be useful instead of just the selected word. --- modules/textadept/find.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3