Skip to content

Commit

Permalink
red: select fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Nov 4, 2023
1 parent 141c1f1 commit 1c87913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lib/red/proc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local function text_match(w, glob, fn, ...)
end
w.buf:resetsel()
w.buf.cur = s + cur_skip(text, start)
fin = s + cur_skip(text, fin) + 1
fin = s + cur_skip(text, fin + 1)
w.buf:setsel(w.buf.cur, fin)
w.buf.cur = fin
w:visible()
Expand Down

0 comments on commit 1c87913

Please sign in to comment.