mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 09:09:32 +02:00
SynEdit, Completion: Fix Last line not maintain right key because LogCaret.Y is One based
This commit is contained in:
parent
835c32c6a1
commit
193f1c2735
@ -2880,7 +2880,7 @@ var
|
||||
begin
|
||||
if Editor=nil then exit;
|
||||
LogCaret:=Editor.LogicalCaretXY;
|
||||
if LogCaret.Y>=Editor.Lines.Count then exit;
|
||||
if LogCaret.Y>Editor.Lines.Count then exit; //* LogCaret.Y One Based
|
||||
Line:=Editor.Lines[LogCaret.Y-1];
|
||||
if LogCaret.X>length(Line) then exit;
|
||||
CharLen:=UTF8CodepointSize(@Line[LogCaret.X]);
|
||||
@ -11622,6 +11622,5 @@ initialization
|
||||
|
||||
finalization
|
||||
InternalFinal;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user