mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Tidied subwin paging
This commit is contained in:
parent
8f6167b45e
commit
0880b217cb
@ -3339,15 +3339,10 @@ _win_handle_page(const wint_t * const ch, const int result)
|
|||||||
current->layout->paged = 0;
|
current->layout->paged = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((current->type == WIN_MUC) || (current->type == WIN_CONSOLE)) {
|
if (current->layout->type == LAYOUT_SPLIT) {
|
||||||
int sub_y = 0;
|
ProfLayoutSplit *split_layout = (ProfLayoutSplit*)current->layout;
|
||||||
int *sub_y_pos = NULL;
|
int sub_y = getcury(split_layout->subwin);
|
||||||
|
int *sub_y_pos = &(split_layout->sub_y_pos);
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// alt up arrow
|
// alt up arrow
|
||||||
if ((result == KEY_CODE_YES) && ((*ch == 565) || (*ch == 337))) {
|
if ((result == KEY_CODE_YES) && ((*ch == 565) || (*ch == 337))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user