Fix regression: can't open folder via cammand argument
Fix one incorrect PathFileExists replacement. Fix #15645, close #15646
This commit is contained in:
parent
595074152d
commit
8baa1553fc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue