mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:39:25 +02:00
* Fix bug #22435, using provided patch by alex biasi
git-svn-id: trunk@40802 -
This commit is contained in:
parent
3a52fdf997
commit
49ff0a1235
@ -5124,7 +5124,7 @@ begin
|
||||
OK:=(S[StartPos] in WordChars);
|
||||
if OK then
|
||||
begin
|
||||
While (StartPos>0) and (S[StartPos-1] in WordChars) do
|
||||
While (StartPos>1) and (S[StartPos-1] in WordChars) do
|
||||
Dec(StartPos);
|
||||
While (EndPos<Length(S)) and (S[EndPos+1] in WordChars) do
|
||||
Inc(EndPos);
|
||||
|
Loading…
Reference in New Issue
Block a user