diff --git a/NppExec/src/NppExec.cpp b/NppExec/src/NppExec.cpp index 4d80404..a947889 100644 --- a/NppExec/src/NppExec.cpp +++ b/NppExec/src/NppExec.cpp @@ -2603,8 +2603,8 @@ int CNppExec::findFileNameIndexInNppOpenFileNames(const tstr& fileName, bool bGe filePath.CalculateLength(); if (filePath.length() > S1.length()) { - const TCHAR ch = filePath.GetAt(filePath.length() - S1.length() - 1); - if (ch == _T('\\') || ch == _T('/')) + filePath.Replace(_T('/'), _T('\\')); + if (filePath.GetAt(filePath.length() - S1.length() - 1) == _T('\\')) { NppExecHelpers::StrUpper(filePath); if (filePath.EndsWith(S1))