diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-14 10:24:36 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-01-15 20:41:10 +0100 |
commit | b9adc30b86ef550655de1e8a8122dae20a6b13df (patch) | |
tree | 1c61cd8fe540451c7c9175cc70002a285b286581 /RichString.h | |
parent | 08ac22ddb9e848123934dad215c58cb03e7ad094 (diff) |
RichString: implement safe rewind
The current rewind logic causes issues when rewinding over the short
string optimization boundary.
Diffstat (limited to 'RichString.h')
-rw-r--r-- | RichString.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/RichString.h b/RichString.h index 7464fff1..d317cb2e 100644 --- a/RichString.h +++ b/RichString.h @@ -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); |