Fix regression: can't open folder via cammand argument

Fix one incorrect PathFileExists replacement.

Fix #15645, close #15646
This commit is contained in:
xomx 2024-09-22 18:25:24 +02:00 committed by Don Ho
parent 595074152d
commit 8baa1553fc
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ BufferID Notepad_plus::doOpen(const wstring& fileName, bool isRecursive, bool is
if (!isSnapshotMode) // if not backup mode, or backupfile path is invalid
{
if (!doesFileExist(longFileName) && !globbing)
if (!doesPathExist(longFileName) && !globbing)
{
wstring longFileDir(longFileName);
PathRemoveFileSpec(longFileDir);