Prechádzať zdrojové kódy

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

git-svn-id: trunk@35992 -
marco 8 rokov pred
rodič
commit
e837a8577c
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  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);
       }