diff options
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/find.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index d5e34ca9..84590c32 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -235,7 +235,7 @@ local function find(text, next, flags, no_wrap, wrapped) buffer:target_whole_document() while buffer:search_in_target(text) ~= -1 do local s, e = buffer.target_start, buffer.target_end - if s == e then break end -- prevent loops + if s == e then e = e + 1 end -- prevent loops for zero-length results if M.highlight_all_matches and e - s > 1 then buffer:indicator_fill_range(s, e - s) end |