Do not scroll to end in message window when paging

This commit is contained in:
James Booth
2014-03-31 21:44:34 +01:00
parent 3d768527c1
commit 3fdd9944ab
3 changed files with 13 additions and 4 deletions

View File

@@ -298,7 +298,11 @@ _ui_incoming_msg(const char * const from, const char * const message,
free(display_from);
ui_current_page_off();
ProfWin *current = wins_get_current();
if (!current->paged) {
win_move_to_end(current);
win_refresh(current);
}
}
static void
@@ -858,7 +862,7 @@ static void
_ui_current_page_off(void)
{
ProfWin *current = wins_get_current();
win_page_off(current);
win_move_to_end(current);
win_refresh(current);
}
@@ -1663,6 +1667,11 @@ _win_handle_page(const wint_t * const ch)
current->paged = 1;
wins_refresh_current();
}
// switch off page if last line visible
if ((y-1) - *page_start == page_space) {
current->paged = 0;
}
}
static void