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

git-svn-id: trunk@35992 -
This commit is contained in:
marco 2017-04-28 11:44:15 +00:00
parent e6e55b3004
commit e837a8577c

View File

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