Closed MShark67 closed 1 year ago
Used the slightly more efficient:
if Chars + x + 2 > Index then
begin
x := Index - Chars;
Break;
end
else if (y = Lines.Count - 1) and (Index >= Chars + x) then
Break;
Please confirm it works.
I noticed this when setting SelLength to a value more than the character count of the editor and noticing that it will select up the first character of the last line. To fix it I just added the following check:
Thanks! -Mark