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;
{$ENDIF}
begin
if ( (PaintLock <> 0) and not IgnorePaintLock ) or
(not HandleAllocated) or
((not Focused) and (not (eoPersistentCaret in fOptions)))
if ( (PaintLock <> 0) and not IgnorePaintLock ) or (not HandleAllocated)
then begin
Include(fStateFlags, sfCaretChanged);
end else begin