about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c5
1 files changed, 4 insertions, 1 deletions
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);
 }