Browse Source

* fix bug #22300, "C" prefix of configuration file.

git-svn-id: trunk@21679 -
marco 13 years ago
parent
commit
b70ed0a407
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ide/fp.pas

+ 2 - 1
ide/fp.pas

@@ -177,8 +177,9 @@ begin
           'C' : { custom config file (BP compatiblity) }
           'C' : { custom config file (BP compatiblity) }
            if BeforeINI then
            if BeforeINI then
             begin
             begin
+              delete(param,1,1); // delete C
               if (length(Param)>=1) and (Param[1] in['=',':']) then
               if (length(Param)>=1) and (Param[1] in['=',':']) then
-                Delete(Param,1,1); { eat separator }
+                Delete(Param,1,1); { eat optional separator }
               IniFileName:=Param;
               IniFileName:=Param;
             end;
             end;
           'R' : { enter the directory last exited from (BP comp.) }
           'R' : { enter the directory last exited from (BP comp.) }