diff --git a/src/main.c b/src/main.c index 4d394ee..489324a 100644 --- a/src/main.c +++ b/src/main.c @@ -524,6 +524,9 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } + if (f_loadfromfile) + load_data(m, DATA_FILE); + prompt = init_windows(m); /* create new thread for ncurses stuff */ @@ -557,9 +560,6 @@ int main(int argc, char *argv[]) #endif /* _SUPPORT_AUDIO */ - if (f_loadfromfile) - load_data(m, DATA_FILE); - if (f_flag == -1) { msg = "You passed '-f' without giving an argument. Defaulting to 'data' for a keyfile..."; line_info_add(prompt, NULL, NULL, NULL, msg, SYS_MSG, 0, 0); diff --git a/src/prompt.c b/src/prompt.c index 5280e61..8a9741c 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -500,7 +500,6 @@ static void prompt_onInit(ToxWindow *self, Tox *m) } execute(ctx->history, self, m, "/help", GLOBAL_COMMAND_MODE); - wmove(ctx->history, y2-1, 2); }