mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-19 10:59:15 +02:00
Merge branch 'CompletionNextChar' into 'main'
SynEdit, Completion: Fix Last line not maintain right key because LogCaret.Y is One based See merge request freepascal.org/lazarus/lazarus!104
This commit is contained in:
commit
6a5b9a627c
@ -2880,7 +2880,7 @@ var
|
|||||||
begin
|
begin
|
||||||
if Editor=nil then exit;
|
if Editor=nil then exit;
|
||||||
LogCaret:=Editor.LogicalCaretXY;
|
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];
|
Line:=Editor.Lines[LogCaret.Y-1];
|
||||||
if LogCaret.X>length(Line) then exit;
|
if LogCaret.X>length(Line) then exit;
|
||||||
CharLen:=UTF8CodepointSize(@Line[LogCaret.X]);
|
CharLen:=UTF8CodepointSize(@Line[LogCaret.X]);
|
||||||
@ -11622,6 +11622,5 @@ initialization
|
|||||||
|
|
||||||
finalization
|
finalization
|
||||||
InternalFinal;
|
InternalFinal;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user