mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 03:50:49 +02:00
IDE: Prevent error when pressing Ctrl+A in an empty Messages Window. Issue #41787.
(cherry picked from commit 30eba66380
)
This commit is contained in:
parent
0aa85dae6c
commit
bcf314a670
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user