mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Case sensitive "cd" command (fixes #1577)
(cherry picked from commit 61a1b24712)
This commit is contained in:
parent
0546c64d13
commit
ca05ac409d
1 changed files with 8 additions and 3 deletions
|
|
@ -5907,10 +5907,10 @@ end;
|
|||
function TfrmMain.ExecuteCommandFromEdit(sCmd: String; bRunInTerm: Boolean): Boolean;
|
||||
var
|
||||
iIndex: Integer;
|
||||
aFile: TFile = nil;
|
||||
sDir, sParams: String;
|
||||
sFilename: String = '';
|
||||
Operation: TFileSourceExecuteOperation = nil;
|
||||
aFile: TFile = nil;
|
||||
begin
|
||||
Result:= True;
|
||||
|
||||
|
|
@ -5922,8 +5922,13 @@ begin
|
|||
|
||||
if (fspDirectAccess in ActiveFrame.FileSource.GetProperties) then
|
||||
begin
|
||||
iIndex:= Pos('cd ', sCmd);
|
||||
if (iIndex = 1) or (sCmd = 'cd') then
|
||||
if FileNameCaseSensitive then
|
||||
sDir:= sCmd
|
||||
else begin
|
||||
sDir:= LowerCase(sCmd);
|
||||
end;
|
||||
iIndex:= Pos('cd ', sDir);
|
||||
if (iIndex = 1) or (sDir = 'cd') then
|
||||
begin
|
||||
sCmd:= ReplaceEnvVars(sCmd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue