mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +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)
|
||||
or (View<>SelectedView) or (FSelectedLines.IndexOf(LineNumber)=-1) then
|
||||
begin
|
||||
Select(View,LineNumber,true,true);
|
||||
StoreSelectedAsSearchStart;
|
||||
if Y<ItemHeight then // The header is drawn on top as a hint.
|
||||
Select(View,-1,true,true) // Select the actual header line.
|
||||
else begin
|
||||
Select(View,LineNumber,true,true);
|
||||
StoreSelectedAsSearchStart;
|
||||
end;
|
||||
end;
|
||||
if (Button=mbRight) then Exit;
|
||||
if ((ssDouble in Shift) and (not (mcoSingleClickOpensFile in FOptions)))
|
||||
|
Loading…
Reference in New Issue
Block a user