Browse Source

* Fix one character being eaten at end of input string

git-svn-id: trunk@40926 -
michael 6 years ago
parent
commit
fd6fbed094
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fcl-passrc/src/pparser.pp

+ 3 - 1
packages/fcl-passrc/src/pparser.pp

@@ -628,7 +628,8 @@ var
     l := CurPos - Start;
     if l <= 0 then
       exit;
-    s:=copy(FPCCommandLine,Start,l);
+    s:=Trim(copy(FPCCommandLine,Start,l));
+    Writeln('Examining >>',S,'<<');
     if (s[1] = '-') and (length(s)>1) then
     begin
       case s[2] of
@@ -747,6 +748,7 @@ begin
           end;
         Inc(CurPos);
         end;
+      Inc(CurPos);
       ProcessCmdLinePart;
       end;