1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Tidied subwin paging

This commit is contained in:
James Booth 2014-12-16 21:08:48 +00:00
parent 8f6167b45e
commit 0880b217cb

View File

@ -3339,15 +3339,10 @@ _win_handle_page(const wint_t * const ch, const int result)
current->layout->paged = 0;
}
if ((current->type == WIN_MUC) || (current->type == WIN_CONSOLE)) {
int sub_y = 0;
int *sub_y_pos = NULL;
if (current->type == WIN_MUC || current->type == WIN_CONSOLE) {
ProfLayoutSplit *split_layout = (ProfLayoutSplit*)current->layout;
sub_y = getcury(split_layout->subwin);
sub_y_pos = &(split_layout->sub_y_pos);
}
if (current->layout->type == LAYOUT_SPLIT) {
ProfLayoutSplit *split_layout = (ProfLayoutSplit*)current->layout;
int sub_y = getcury(split_layout->subwin);
int *sub_y_pos = &(split_layout->sub_y_pos);
// alt up arrow
if ((result == KEY_CODE_YES) && ((*ch == 565) || (*ch == 337))) {