synedit: fixed crash in comment

git-svn-id: trunk@64126 -
This commit is contained in:
mattias 2020-11-12 11:43:08 +00:00
parent de3ecc28ed
commit 0a7abce1cf

View File

@ -970,6 +970,8 @@ var
p := GetMatchStartPos(-1, AForceFirst);
FRegExprEngine.InputString:= copy(FCurrentLines[ToIdx(p.y)], p.x, MaxInt);
if (FRegExprEngine.InputString='') then
exit(false);
FRegExprEngine.Expression := FMatch[AType];
if not FRegExprEngine.ExecPos(1) then begin
ReplacedPrefix := FRegExprEngine.Substitute(FPrefix[AType]);