Comment Wrap plugin crashes in Notepad++ 8.3
-
Are you still supporting Comment Wrap? If so, Notepad++ 8.3 has made some breaking changes to support >2Gb files that affect all plugins - especially those using Scintilla positions and text / character ranges.
You’ll basically want to update your headers with latest from Notepad++ repo:
and then make any changes in your code where the Scintilla API calls return a position - instead of getting an
int
, you’ll wantSci_Position
orintptr_t
. Also, text ranges / character ranges (like calls toSCI_GETTEXTRANGE
) should expectSci_PositionCR
.Cheers.
P.S.: I specifically mention “Comment Wrap”, but this holds true for the other plugins you support as well. I updated mine last week. Most were pretty easy recompiles with the new headers, some required the additional work.