diff --git a/components/richmemo/richmemo.pas b/components/richmemo/richmemo.pas index 310713c2a..1f3df6423 100644 --- a/components/richmemo/richmemo.pas +++ b/components/richmemo/richmemo.pas @@ -1086,6 +1086,7 @@ begin // depending on the language and search options (to be done) // mostly for Arabi and Hebrew languages ATextLength:=UTF8Length(ANiddle); + Result := (ATextStart >= 0); end else begin Result:=TWSCustomRichMemoClass(WidgetSetClass).SearchEx(Self, ANiddle, so, ATextStart, ATextLength); end;