@linvinus have you checked with Scintilla about these changes? If not, you might want to make sure such changes will be accepted there first. It would be a shame to see you spend all this time perfecting your patch only to have it rejected by Scintilla's maintainer (and thus never make it into Geany).