1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 16:46:46 +02:00

Implement word wrapping

It's about time
This commit is contained in:
jfreegman
2020-11-22 18:41:12 -05:00
parent 9d65997871
commit 8e84ac58d4
2 changed files with 133 additions and 46 deletions

View File

@ -56,7 +56,9 @@ struct line_info {
uint8_t colour;
uint8_t noread_flag; /* true if a line should be flagged as unread */
uint32_t id;
uint16_t len; /* combined len of entire line */
uint16_t len; /* combined length of entire line */
uint16_t format_len; /* formatted length of combined string (dynamically set by print_wrap()) */
uint16_t msg_len; /* length of the message */
uint8_t newlines;
struct line_info *prev;