OSDN Git Service

Change the file naming method of the file compare report to avoid duplication of...
authorJun Tajima <56220423+tjmprm77@users.noreply.github.com>
Sun, 30 Jan 2022 13:15:16 +0000 (22:15 +0900)
committerGitHub <noreply@github.com>
Sun, 30 Jan 2022 13:15:16 +0000 (22:15 +0900)
- Add the row number in the folder comparison report to the head of the file name in the file comparison report.

Src/DirView.cpp

index 85a7e85..bb8f627 100644 (file)
@@ -2856,7 +2856,7 @@ struct FileCmpReport: public IFileCmpReport
                        return false;
                }
 
-               sLinkPath = di.diffFileInfo[0].GetFile();
+               sLinkPath = strutils::format(_T("%d_"), nIndex) + di.diffFileInfo[0].GetFile();
 
                strutils::replace(sLinkPath, _T("\\"), _T("_"));
                sLinkPath += _T(".html");