mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix EAbort error when copying text from SynMemo without highlighter. See https://www.heidisql.com/forum.php?t=38906
This commit is contained in:
@@ -334,6 +334,12 @@ begin
|
||||
Break;
|
||||
end;
|
||||
end;
|
||||
// In case the combobox is empty:
|
||||
if MemoText.Highlighter = nil then begin
|
||||
FHighlighter := TSynGeneralSyn.Create(Self);
|
||||
MemoText.Highlighter := FHighlighter;
|
||||
end;
|
||||
|
||||
MemoText.SelStart := SelStart;
|
||||
MemoText.SelLength := SelLength;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user