We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1a6598 + 3086bd5 commit 7db6398Copy full SHA for 7db6398
1 file changed
source/appModules/notepadPlusPlus.py
@@ -46,7 +46,9 @@ class NppEdit(ScintillaBase.Scintilla):
46
def _get_TextInfo(self):
47
if self.appModule.is64BitProcess:
48
appVerMajor, appVerMinor, *__ = self.appModule.productVersion.split(".")
49
- if int(appVerMajor) >= 8 and int(appVerMinor) >= 3:
+ # appVerMinor could be either one digit (e.g. in 8.3), two digits (e.g. in 8.21), or even three (8.1.9.2)
50
+ appVerMinor = appVerMinor.ljust(3, '0')
51
+ if int(appVerMajor) >= 8 and int(appVerMinor[0]) >= 3:
52
return ScintillaTextInfoNpp83
53
return super().TextInfo
54
0 commit comments