aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wins.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wins.c b/src/wins.c
index 4f569b8..ca5171f 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -355,10 +355,7 @@ wins_reinit (void)
void
wins_show (WINDOW *win, char *label)
{
- int startx, starty, height, width;
-
- getbegyx (win, starty, startx);
- getmaxyx (win, height, width);
+ int width = getmaxx (win);
box (win, 0, 0);
mvwaddch (win, 2, 0, ACS_LTEE);