UPD: '..' returns the path that does not end with PathDelimiter #2924

This commit is contained in:
rich2014 2026-06-11 09:39:17 +08:00
commit 9781239310

View file

@ -900,9 +900,9 @@ begin
rightFile:= frmMain.FrameRight.CloneActiveFile;
// ".." should be interpreted as the parent directory
if Assigned(leftFile) and (not leftFile.IsNameValid) then
leftFile.Name:= EmptyStr;
leftFile.FullPath:= leftFile.Path;
if Assigned(rightFile) and (not rightFile.IsNameValid) then
rightFile.Name:= EmptyStr;
rightFile.FullPath:= rightFile.Path;
if frmMain.ActiveFrame = frmMain.FrameLeft then
begin