mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 03:21:44 +02:00
SynEdit: Fix long line hint (was not always updated)
git-svn-id: trunk@25853 -
This commit is contained in:
parent
b5ee8bc72b
commit
a5ac940baf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user