about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSpiridonov Alexander <spiridoncha@gmail.com>2016-10-22 00:03:55 +0300
committerSpiridonov Alexander <spiridoncha@gmail.com>2016-10-22 00:08:55 +0300
commit0d6aef68e7f08db1c3879a9e9a2c25db9838501d (patch)
tree97c2aec1b638a0edee540811fe1529ab5c162be5 /src
parenta8ad394ee3feb592e761b7fc3b512ef7a51e0ad5 (diff)
downloadprofani-tty-0d6aef68e7f08db1c3879a9e9a2c25db9838501d.tar.gz
Change /clear behaviour. Closes issue #855.
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);
 }