IDE: Prevent error when pressing Ctrl+A in an empty Messages Window. Issue #41787.

(cherry picked from commit 30eba66380)
This commit is contained in:
Juha 2025-08-04 10:27:21 +03:00
parent 0aa85dae6c
commit bcf314a670

View File

@ -1859,8 +1859,10 @@ begin
begin
if SelectedView=nil then
SelectFirst(true,true);
Select(SelectedView,-1,false,false);
ExtendSelection(SelectedView,SelectedView.Lines.Count-1);
if SelectedView<>nil then begin
Select(SelectedView,-1,false,false);
ExtendSelection(SelectedView,SelectedView.Lines.Count-1);
end;
Key := 0;
end
// [Up]