mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-15 19:26:03 +08:00
Fix crash in SynCompletionProposalChange, happening when scrolling very fast to the top of the list
This commit is contained in:
@ -6695,7 +6695,8 @@ var
|
|||||||
Proposal: TSynCompletionProposal;
|
Proposal: TSynCompletionProposal;
|
||||||
begin
|
begin
|
||||||
Proposal := Sender as TSynCompletionProposal;
|
Proposal := Sender as TSynCompletionProposal;
|
||||||
Proposal.Title := Proposal.InsertItem(AIndex);
|
if (AIndex >= 0) and (AIndex < Proposal.ItemList.Count) then
|
||||||
|
Proposal.Title := Proposal.InsertItem(AIndex);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user