RichString: implement safe rewind

The current rewind logic causes issues when rewinding over the short
string optimization boundary.
This commit is contained in:
Christian Göttsche
2021-01-14 10:24:36 +01:00
committed by cgzones
parent 08ac22ddb9
commit b9adc30b86
3 changed files with 7 additions and 1 deletions

View File

@ -42,6 +42,8 @@ typedef struct RichString_ {
int highlightAttr;
} RichString;
void RichString_rewind(RichString* this, int count);
void RichString_setAttrn(RichString* this, int attrs, int start, int charcount);
int RichString_findChar(const RichString* this, char c, int start);