Skip to content

Commit

Permalink
Fix regression: can't open folder via cammand argument
Browse files Browse the repository at this point in the history
Fix one incorrect PathFileExists replacement.

Fix notepad-plus-plus#15645, close notepad-plus-plus#15646
  • Loading branch information
xomx authored and donho committed Sep 23, 2024
1 parent 5950741 commit 8baa155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/NppIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8baa155

Please sign in to comment.