mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 09:10:20 +02:00
SynEdit: Simplified UpdateCaret, since it was moved to an object, state is maintained, and focus checks are not needed here any more.
Works around issue #17207 git-svn-id: trunk@27216 -
This commit is contained in:
parent
647bcccde4
commit
72b82c7a6c
@ -4370,9 +4370,7 @@ var
|
|||||||
cf: TCompositionForm;
|
cf: TCompositionForm;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
begin
|
begin
|
||||||
if ( (PaintLock <> 0) and not IgnorePaintLock ) or
|
if ( (PaintLock <> 0) and not IgnorePaintLock ) or (not HandleAllocated)
|
||||||
(not HandleAllocated) or
|
|
||||||
((not Focused) and (not (eoPersistentCaret in fOptions)))
|
|
||||||
then begin
|
then begin
|
||||||
Include(fStateFlags, sfCaretChanged);
|
Include(fStateFlags, sfCaretChanged);
|
||||||
end else begin
|
end else begin
|
||||||
|
Loading…
Reference in New Issue
Block a user