mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 13:50:06 +02:00
SynEdit: Fixed Caret when scrolling under older Wine (Win Emulator) 0021929
git-svn-id: trunk@37166 -
This commit is contained in:
parent
b16adcf533
commit
d17e688df7
@ -4190,6 +4190,7 @@ begin
|
||||
debugln(['ScrollAfterTopLineChanged did scroll Delta=',Delta]);
|
||||
{$ENDIF}
|
||||
include(fStateFlags, sfHasScrolled);
|
||||
FScreenCaret.InvalidatePos; // Wine (Win emulator) may have changed the pos with the scroll
|
||||
end else begin
|
||||
Invalidate; // scrollwindow failed, invalidate all
|
||||
{$IFDEF SYNSCROLLDEBUG}
|
||||
|
@ -308,6 +308,7 @@ type
|
||||
procedure DestroyCaret(SkipHide: boolean = False);
|
||||
procedure Lock;
|
||||
procedure UnLock;
|
||||
procedure InvalidatePos;
|
||||
property HandleOwner: TWinControl read FHandleOwner;
|
||||
property CharWidth: Integer read FCharWidth write SetCharWidth;
|
||||
property CharHeight: Integer read FCharHeight write SetCharHeight;
|
||||
@ -1687,6 +1688,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TSynEditScreenCaret.InvalidatePos;
|
||||
begin
|
||||
FCurrentPosY := -1;
|
||||
FCurrentPosX := -1;
|
||||
end;
|
||||
|
||||
procedure TSynEditScreenCaret.SetClipRight(const AValue: Integer);
|
||||
begin
|
||||
if FClipRight = AValue then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user