From 5657360f11537310f3c6e01e393a97cb39fe0bef Mon Sep 17 00:00:00 2001 From: d0vgan Date: Sat, 20 Jan 2024 22:40:54 +0200 Subject: [PATCH] correcting findFileNameIndexInNppOpenFileNames once again --- NppExec/src/NppExec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))