|
@@ -5124,7 +5124,7 @@ begin
|
|
OK:=(S[StartPos] in WordChars);
|
|
OK:=(S[StartPos] in WordChars);
|
|
if OK then
|
|
if OK then
|
|
begin
|
|
begin
|
|
- While (StartPos>0) and (S[StartPos-1] in WordChars) do
|
|
|
|
|
|
+ While (StartPos>1) and (S[StartPos-1] in WordChars) do
|
|
Dec(StartPos);
|
|
Dec(StartPos);
|
|
While (EndPos<Length(S)) and (S[EndPos+1] in WordChars) do
|
|
While (EndPos<Length(S)) and (S[EndPos+1] in WordChars) do
|
|
Inc(EndPos);
|
|
Inc(EndPos);
|