mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 06:20:45 +02:00
synedit: fixed crash in comment
git-svn-id: trunk@64126 -
This commit is contained in:
parent
de3ecc28ed
commit
0a7abce1cf
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user