SynEdit: Fix long line hint (was not always updated)

git-svn-id: trunk@25853 -
This commit is contained in:
martin 2010-06-02 23:02:54 +00:00
parent b5ee8bc72b
commit a5ac940baf

View File

@ -443,10 +443,6 @@ begin
if Visible and (AIndex >= 0) and (AIndex < ItemList.Count) and
(FLongLineHintType <> sclpNone)
then begin
if not(FHint.IsVisible and (FHint.Index = AIndex)) then begin
if (FHint.Index <> AIndex) and (FLongLineHintTime > 0) then
FHint.Hide;
// CalcHintRect uses the current index
FHint.Index := AIndex;
// calculate the size
@ -477,11 +473,10 @@ begin
FHint.DisplayRect := Bounds(P.X, P.Y, R.Right, R.Bottom);
if FLongLineHintTime > 0 then
if (not FHint.IsVisible) and (FLongLineHintTime > 0) then
FHintTimer.Enabled := True
else
OnHintTimer(nil);
end;
end
else begin
FHint.Hide;