Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
notepad.getFiles() returns incorrect results. #22
As per issue title, getFiles() sometimes returns incorrect results. See here: https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/bc28b0dd/
I believe the issue has to do with the implementation here: https://github.com/bruderstein/PythonScript/blob/master/PythonScript/src/NotepadPlusWrapper.cpp#L268, specifically:
The NPP documentation about the above message (at http://docs.notepad-plus-plus.org/index.php/Messages_And_Notifications), states that the message requires the constants PRIMARY_VIEW or SECOND_VIEW, which do not appear to equate to 0 and 1 respectively. (They are, I think, 1 and 2).
The call needs to be something like:
I believe that would fix the issue, though I have done no testing. (I don't have a build environment - not just being lazy!)
@w-p-b see https://github.com/bruderstein/PythonScript/releases/tag/v1.0.9, if you want to give it a try. For x64 this beta version is available also via plugin manager.