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

redesign text input field to scroll horizontally, increase max string size

This commit is contained in:
Jfreegman
2014-06-20 23:08:13 -04:00
parent 3e797db16e
commit 9f4248b1e1
7 changed files with 94 additions and 56 deletions

View File

@ -91,6 +91,7 @@ void discard_buf(ChatContext *ctx)
ctx->line[c++] = ctx->line[i];
ctx->pos = 0;
ctx->start = 0;
ctx->len = c - 1;
}
@ -104,12 +105,13 @@ void kill_buf(ChatContext *ctx)
ctx->len = ctx->pos;
}
/* nulls line and sets pos and len to 0 */
/* nulls line and sets pos, len and start to 0 */
void reset_buf(ChatContext *ctx)
{
ctx->line[0] = L'\0';
ctx->pos = 0;
ctx->len = 0;
ctx->start = 0;
}
/* Removes trailing spaces from line. */