From 3ddae51998a5fb6e2f1bc1bdce1153be8fef0cb1 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Thu, 5 Sep 2013 18:36:46 -0400 Subject: [PATCH] small fix --- src/chat.c | 2 +- src/windows.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chat.c b/src/chat.c index fec6d02..2c8a436 100644 --- a/src/chat.c +++ b/src/chat.c @@ -494,6 +494,7 @@ static void chat_onInit(ToxWindow *self, Tox *m) ctx->history = subwin(self->window, y-3, x, 0, 0); scrollok(ctx->history, 1); ctx->linewin = subwin(self->window, 0, x, y-4, 0); + wprintw(ctx->history, "\n\n"); print_help(ctx); wmove(self->window, y - CURS_Y_OFFSET, 0); } @@ -534,7 +535,6 @@ ToxWindow new_chat(Tox *m, int friendnum) uint8_t name[TOX_MAX_NAME_LENGTH] = {'\0'}; tox_getname(m, friendnum, (uint8_t *) &name); - snprintf(ret.name, sizeof(ret.name), "%s", name); ChatContext *x = calloc(1, sizeof(ChatContext)); diff --git a/src/windows.c b/src/windows.c index 75cb10e..5849c1d 100644 --- a/src/windows.c +++ b/src/windows.c @@ -146,7 +146,6 @@ int add_window(Tox *m, ToxWindow w) windows[i] = w; w.onInit(&w, m); - //active_window = windows + i; return i; }