1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 01:56:35 +01:00

more fixes for line printing/scrolling

This commit is contained in:
Jfreegman
2014-06-14 01:43:59 -04:00
parent a516724760
commit ce2d371c4b
6 changed files with 75 additions and 37 deletions

View File

@@ -186,7 +186,7 @@ void cmd_savefile(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
uint8_t msg[MAX_STR_SIZE];
snprintf(msg, sizeof(msg), "Saving file as: '%s' (%.1f%%)", filename, 0.0);
line_info_add(self, NULL, NULL, NULL, msg, SYS_MSG, 0, 0);
friends[self->num].file_receiver.line_id[filenum] = self->chatwin->hst->line_end->id;
friends[self->num].file_receiver.line_id[filenum] = self->chatwin->hst->line_end->id + 1;
if ((friends[self->num].file_receiver.files[filenum] = fopen(filename, "a")) == NULL) {
errmsg = "* Error writing to file.";