aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-08-23 17:42:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-08-23 17:42:33 -0400
commite326775782bc8b9b0e004d5134d602b26ffeb3a5 (patch)
tree54a56d3fb978a39ea4932cb86362ebe4589e1a11 /modules/textadept
parenta4ca21792b915781b69b3ece14a7a5f67595693c (diff)
downloadtextadept-e326775782bc8b9b0e004d5134d602b26ffeb3a5.tar.gz
textadept-e326775782bc8b9b0e004d5134d602b26ffeb3a5.zip
Fixed bug where jumping to a find in files result of length 1 highlights wrong.
Diffstat (limited to 'modules/textadept')
-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 ffc4d2b2..231159e2 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -467,7 +467,7 @@ function M.goto_file_found(line_num, next)
textadept.editing.select_line()
pos = buffer.selection_start + pos - 1 -- absolute pos of result text on line
local s = buffer:indicator_end(M.INDIC_FIND, buffer.selection_start)
- local e = buffer:indicator_end(M.INDIC_FIND, s + 1)
+ local e = buffer:indicator_end(M.INDIC_FIND, s)
if buffer:line_from_position(s) == buffer:line_from_position(pos) then
s, e = s - pos, e - pos -- relative to line start
else