Skip to content

Commit

Permalink
correcting findFileNameIndexInNppOpenFileNames once again
Browse files Browse the repository at this point in the history
  • Loading branch information
d0vgan committed Jan 20, 2024
1 parent fd32992 commit 5657360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NppExec/src/NppExec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5657360

Please sign in to comment.