소스 검색

* Fix bug #22435, using provided patch by alex biasi

git-svn-id: trunk@40802 -
michael 6 년 전
부모
커밋
49ff0a1235
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ide/weditor.pas

+ 1 - 1
packages/ide/weditor.pas

@@ -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);