Browse Source

* fix compilation after last commit. make clean all in ide/ doesn't build all, and weditor
had a local definition of rtrim

git-svn-id: trunk@35998 -

marco 8 years ago
parent
commit
2a82951f18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ide/weditor.pas

+ 1 - 1
ide/weditor.pas

@@ -6805,7 +6805,7 @@ begin
     S:=GetLineText(Line);
     S:=GetLineText(Line);
     { Remove all traling spaces PM }
     { Remove all traling spaces PM }
     if not Editor^.IsFlagSet(efKeepTrailingSpaces) then
     if not Editor^.IsFlagSet(efKeepTrailingSpaces) then
-      s:=RTrim(S);
+      s:=RTrim(S,False); // removes trailing #0 too
     { if FlagSet(efUseTabCharacters) then
     { if FlagSet(efUseTabCharacters) then
       S:=CompressUsingTabs(S,TabSize);
       S:=CompressUsingTabs(S,TabSize);
       }
       }