From 0d6aef68e7f08db1c3879a9e9a2c25db9838501d Mon Sep 17 00:00:00 2001 From: Spiridonov Alexander Date: Sat, 22 Oct 2016 00:03:55 +0300 Subject: [PATCH] Change /clear behaviour. Closes issue #855. --- src/ui/window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index 1a7dc6bd..bbc9b9d0 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -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); }