mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Silence AV bug in SynEdit
This commit is contained in:
@@ -2725,8 +2725,10 @@ begin
|
||||
if m.SelAvail and (m.BlockBegin.Line = m.BlockEnd.Line)
|
||||
then
|
||||
FindDialogQuery.FindText := m.SelText
|
||||
else
|
||||
else try // GetWordAtRowCol throws an AV when no text is present
|
||||
FindDialogQuery.FindText := m.GetWordAtRowCol(m.CaretXY);
|
||||
except
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user