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