From b36a1347022965fdbe1b61298dc6a05be2d2a34d Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 12 Sep 2018 22:55:02 -0400 Subject: Use formatParse split to position input cursor --- chat.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 50f5c87..6295ce6 100644 --- a/chat.h +++ b/chat.h @@ -86,15 +86,12 @@ enum { struct Format { const wchar_t *str; size_t len; - bool bold; - bool italic; - bool underline; - bool reverse; - int fg; - int bg; + bool split; + bool bold, italic, underline, reverse; + int fg, bg; }; void formatReset(struct Format *format); -bool formatParse(struct Format *format, const wchar_t *stop); +bool formatParse(struct Format *format, const wchar_t *split); void handle(char *line); void input(struct Tag tag, char *line); -- cgit 1.4.1