mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +02:00
IDE: Move to actual message header when the header hint on top is clicked. Issue #39506.
(cherry picked from commit ab4e2af841
)
This commit is contained in:
parent
c9605867fc
commit
3416b7f8e6
@ -1750,8 +1750,12 @@ begin
|
|||||||
if (Button=mbLeft)
|
if (Button=mbLeft)
|
||||||
or (View<>SelectedView) or (FSelectedLines.IndexOf(LineNumber)=-1) then
|
or (View<>SelectedView) or (FSelectedLines.IndexOf(LineNumber)=-1) then
|
||||||
begin
|
begin
|
||||||
Select(View,LineNumber,true,true);
|
if Y<ItemHeight then // The header is drawn on top as a hint.
|
||||||
StoreSelectedAsSearchStart;
|
Select(View,-1,true,true) // Select the actual header line.
|
||||||
|
else begin
|
||||||
|
Select(View,LineNumber,true,true);
|
||||||
|
StoreSelectedAsSearchStart;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if (Button=mbRight) then Exit;
|
if (Button=mbRight) then Exit;
|
||||||
if ((ssDouble in Shift) and (not (mcoSingleClickOpensFile in FOptions)))
|
if ((ssDouble in Shift) and (not (mcoSingleClickOpensFile in FOptions)))
|
||||||
|
Loading…
Reference in New Issue
Block a user