Skip to content

Commit 7db6398

Browse files
authored
Merge 3086bd5 into a1a6598
2 parents a1a6598 + 3086bd5 commit 7db6398

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/appModules/notepadPlusPlus.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class NppEdit(ScintillaBase.Scintilla):
4646
def _get_TextInfo(self):
4747
if self.appModule.is64BitProcess:
4848
appVerMajor, appVerMinor, *__ = self.appModule.productVersion.split(".")
49-
if int(appVerMajor) >= 8 and int(appVerMinor) >= 3:
49+
# 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:
5052
return ScintillaTextInfoNpp83
5153
return super().TextInfo
5254

0 commit comments

Comments
 (0)