mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 21:40:25 +02:00
IDE, Identifier-Completion: fix crash when using template completion. Issue #40439
This commit is contained in:
parent
91052758c8
commit
ebe39d7d54
@ -2724,9 +2724,10 @@ begin
|
||||
Font.Style:=[];
|
||||
end;
|
||||
|
||||
if CodeToolBoss.IdentifierList.SortForHistory and
|
||||
(iliIsRecentItem in CodeToolBoss.IdentifierList.FilteredItems[Index].Flags) and
|
||||
(FActiveHistoryTextColor <> clNone)
|
||||
if (CurrentCompletionType = ctIdentCompletion) and
|
||||
(CodeToolBoss.IdentifierList.SortForHistory) and
|
||||
(iliIsRecentItem in CodeToolBoss.IdentifierList.FilteredItems[Index].Flags) and
|
||||
(FActiveHistoryTextColor <> clNone)
|
||||
then begin
|
||||
Colors.TextColor := FActiveHistoryTextColor; // - to display history items
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user