mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: improve handling when ".." is selected in ReplaceVarParams()
This commit is contained in:
parent
c007bfa8e8
commit
5af28c634e
1 changed files with 3 additions and 2 deletions
|
|
@ -898,10 +898,11 @@ begin
|
|||
|
||||
leftFile:= frmMain.FrameLeft.CloneActiveFile;
|
||||
rightFile:= frmMain.FrameRight.CloneActiveFile;
|
||||
// ".." should be interpreted as the parent directory
|
||||
if Assigned(leftFile) and (not leftFile.IsNameValid) then
|
||||
FreeAndNil(leftFile);
|
||||
leftFile.Name:= EmptyStr;
|
||||
if Assigned(rightFile) and (not rightFile.IsNameValid) then
|
||||
FreeAndNil(rightFile);
|
||||
rightFile.Name:= EmptyStr;
|
||||
|
||||
if frmMain.ActiveFrame = frmMain.FrameLeft then
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue