Change /clear behaviour. Closes issue #855.

This commit is contained in:
Spiridonov Alexander
2016-10-22 00:03:55 +03:00
parent a8ad394ee3
commit 0d6aef68e7

View File

@@ -562,7 +562,10 @@ win_sub_page_up(ProfWin *window)
void
win_clear(ProfWin *window)
{
werase(window->layout->win);
int y = getcury(window->layout->win);
int *page_start = &(window->layout->y_pos);
*page_start = y;
window->layout->paged = 1;
win_update_virtual(window);
}