1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 08:26:45 +02:00

refactor chat window input code, misc fixes

This commit is contained in:
Jfreegman
2014-06-26 02:33:09 -04:00
parent 6c38e72654
commit 09badaa9ee
12 changed files with 449 additions and 404 deletions

View File

@ -166,9 +166,9 @@ struct infobox {
/* chat and groupchat window/buffer holder */
struct ChatContext {
wchar_t line[MAX_STR_SIZE];
size_t pos;
size_t len;
size_t start; /* the position to start printing line at */
int pos;
int len;
int start; /* the position to start printing line at */
wchar_t ln_history[MAX_LINE_HIST][MAX_STR_SIZE]; /* history for input lines/commands */
int hst_pos;