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:
Juha 2021-12-10 23:18:46 +02:00 committed by Maxim Ganetsky
parent c9605867fc
commit 3416b7f8e6

View File

@ -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)))