Fix file area changing

This commit is contained in:
Andrew Pamment 2016-04-03 15:32:41 +10:00
parent a42e527f26
commit 3d5f9de45b

View File

@ -707,7 +707,7 @@ int file_menu(int socket, struct user_record *user) {
if (i + 1 == conf.file_directories[user->cur_file_dir]->file_sub_count) { if (i + 1 == conf.file_directories[user->cur_file_dir]->file_sub_count) {
i = -1; i = -1;
} }
user->cur_mail_area = i + 1; user->cur_file_sub = i + 1;
} }
break; break;
case '[': case '[':
@ -716,7 +716,7 @@ int file_menu(int socket, struct user_record *user) {
if (i - 1 == -1) { if (i - 1 == -1) {
i = conf.file_directories[user->cur_file_dir]->file_sub_count; i = conf.file_directories[user->cur_file_dir]->file_sub_count;
} }
user->cur_mail_area = i - 1; user->cur_file_sub = i - 1;
} }
break; break;
case 'q': case 'q':