mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Issue #1552: fix hanging due to querying TSynMemo.GetTextLen in OnPaintTransient
This commit is contained in:
@ -7395,9 +7395,10 @@ begin
|
||||
if (MatchingBraceBackgroundColor = clNone) and (MatchingBraceForegroundColor = clNone) then
|
||||
Exit;
|
||||
Editor := TSynEdit(Sender);
|
||||
// Prevent lagging on large contents
|
||||
if Editor.GetTextLen > 5*SIZE_MB then
|
||||
Exit;
|
||||
// Check for Editor.GetTextLen causes some endless loop in SynEdit.
|
||||
// But not due to activated WordWrap. Must be some interlocked WM_GETTEXTLENGTH message, or an undefined text length.
|
||||
//if Editor.GetTextLen > 5*SIZE_MB then
|
||||
// Exit;
|
||||
|
||||
// Highlight matching words, if selected text is a (small) word
|
||||
if Editor.SelLength < Editor.CharsInWindow then begin
|
||||
|
Reference in New Issue
Block a user