Fix NPPM_RELOADFILE with 8.3 path containing bug

Fixes issue seen with pythonscript testcase https://github.com/bruderstein/PythonScript/blob/master/PythonScript/python_tests/tests/NotepadWrapperTestCase.py#L383-L397 using NPPM_RELOADFILE with a 8.3 path containing.

Fix #11106, close #11107
This commit is contained in:
Christian Grasser 2022-01-30 11:16:43 +01:00 committed by Don HO
parent 73a4cdc104
commit c0be50494c
1 changed files with 1 additions and 1 deletions

View File

@ -1599,7 +1599,7 @@ BufferID FileManager::getBufferFromName(const TCHAR* name)
for (size_t i = 0; i < _buffers.size(); i++)
{
if (OrdinalIgnoreCaseCompareStrings(name, _buffers.at(i)->getFullPathName()) == 0)
if (OrdinalIgnoreCaseCompareStrings(fullpath, _buffers.at(i)->getFullPathName()) == 0)
{
if (_buffers.at(i)->_referees[0]->isVisible())
{