Explorar o código

* use rtrim instead of a dec(s[0]) method after remark by jc99

git-svn-id: trunk@35992 -
marco %!s(int64=8) %!d(string=hai) anos
pai
achega
e837a8577c
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      ide/weditor.pas

+ 1 - 2
ide/weditor.pas

@@ -6805,8 +6805,7 @@ begin
     S:=GetLineText(Line);
     { Remove all traling spaces PM }
     if not Editor^.IsFlagSet(efKeepTrailingSpaces) then
-      While (Length(S)>0) and (S[Length(S)]=' ') do
-       Dec(S[0]);
+      s:=RTrim(S);
     { if FlagSet(efUseTabCharacters) then
       S:=CompressUsingTabs(S,TabSize);
       }