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:
martin 2010-08-27 22:51:40 +00:00
parent 647bcccde4
commit 72b82c7a6c

View File

@ -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