Added win_page_off

This commit is contained in:
James Booth
2013-10-07 00:59:17 +01:00
parent acf1afe025
commit 2d534fb278
3 changed files with 18 additions and 12 deletions

View File

@@ -744,18 +744,8 @@ void
ui_current_page_off(void)
{
ProfWin *current = wins_get_current();
current->paged = 0;
int rows = getmaxy(stdscr);
int y = getcury(current->win);
int size = rows - 3;
current->y_pos = y - (size - 1);
if (current->y_pos < 0) {
current->y_pos = 0;
}
wins_refresh_current();
win_page_off(current);
win_refresh(current);
}
void