From 0d2031e2eb185a8b2414b93b35a697fd15baaedd Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 8 Feb 2009 21:05:16 +0000 Subject: [PATCH] Silence AV bug in SynEdit --- source/main.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/main.pas b/source/main.pas index bb1a7d58..bf7a85e4 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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;