geany/geany — comment on commit ea51c487d3f1eb0baaed021249b39f775ed6992c
File: src/document.c line 2256
By ntrel:

It seems that you did it right without the +1, but I do wonder if the data needs to be terminated with an EOF char for parsing - if so the tm_ function needs to be changed. Probably a question for Colomban.