Skip to content

Commit 8bf4764

Browse files
committed
Issue #2483: fix one of several issues with High Entropy VA in SynEdit
1 parent e1db0a6 commit 8bf4764

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

components/synedit/Source/SynCompletionProposal.pas

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,9 +2722,14 @@ function TSynBaseCompletionProposal.GetDefaultKind: SynCompletionType;
27222722

27232723
procedure TSynBaseCompletionProposal.SetDefaultKind(const Value: SynCompletionType);
27242724
begin
2725-
Form.DefaultType := Value;
2726-
Form.DisplayType := Value;
2727-
Form.RecreateWnd;
2725+
if Form.DefaultType <> Value then begin
2726+
Form.DefaultType := Value;
2727+
Form.DisplayType := Value;
2728+
if Form.HandleAllocated then
2729+
Form.RecreateWnd;
2730+
end
2731+
else
2732+
Form.DisplayType := Value;
27282733
end;
27292734

27302735
procedure TSynBaseCompletionProposal.SetEndOfTokenChar(

0 commit comments

Comments
 (0)