Skip to content

Commit ea0118f

Browse files
Robert Di PardoRobert Di Pardo
authored andcommitted
Fix application version check
The `NPPM_GETNPPVERSION` API returns a single DWORD that breaks down to a high and low value (*). The low value is parsed from a version string that is "descriptive" rather than semantic (**) Most often there are 3 digits, e.g. "8.33". But with every "minor version" bump, it's reduced to only 2 digits, e.g. "8.4" --- (*) https://github.com/notepad-plus-plus/npp-usermanual/blob/master/content/docs/plugin-communication.md#nppm_getnppversion (**) https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/resource.h#L24-L25
1 parent a518e7a commit ea0118f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/U_Npp_HTMLTag.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function TNppPluginHTMLTag.SupportsBigFiles: Boolean;
380380
(HIWORD(NppVersion) > 8) or
381381
((HIWORD(NppVersion) = 8) and
382382
// 8.3 -> 8,3 (*not* 8,30)
383-
((LOWORD(NppVersion) = 3) or
383+
(((LOWORD(NppVersion) >= 3) and (LOWORD(NppVersion) <= 9)) or
384384
((LOWORD(NppVersion) > 21) and not IsPatchRelease)))
385385
end {TNppPluginHTMLTag.SupportsBigFiles};
386386

0 commit comments

Comments
 (0)