mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
RichString: implement safe rewind
The current rewind logic causes issues when rewinding over the short string optimization boundary.
This commit is contained in:

committed by
cgzones

parent
08ac22ddb9
commit
b9adc30b86
@ -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);
|
||||
|
Reference in New Issue
Block a user