about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-10-06 23:25:01 +0100
committerJames Booth <boothj5@gmail.com>2013-10-06 23:25:01 +0100
commite2161d8acc07e822d473a83a26d0c1077568e1f5 (patch)
treeb58ef6c15a33e26c2f41eb97d92ae6246decf9ae /src/ui
parentc6c0a94bb03a5bcd11f555478a7cc7e31f8a3551 (diff)
downloadprofani-tty-e2161d8acc07e822d473a83a26d0c1077568e1f5.tar.gz
Refactor wins_refresh_current
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/windows.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 87b61ab1..88c811e5 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -207,9 +207,7 @@ void
 wins_refresh_current(void)
 {
     ProfWin *window = wins_get_current();
-    int rows, cols;
-    getmaxyx(stdscr, rows, cols);
-    prefresh(window->win, window->y_pos, 0, 1, 0, rows-3, cols-1);
+    win_refresh(window);
 }
 
 void