From 0427f70c4ef67a4830b3884a40f9ccb6e01fa3d2 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 14 May 2021 00:16:48 +0530 Subject: [PATCH] netbsd-curses: fix broken statusbar issue See https://github.com/sabotage-linux/netbsd-curses/issues/46 --- src/nnn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 91b97ebf..78ee932d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5783,8 +5783,7 @@ static void draw_line(char *path, int ncols) static void redraw(char *path) { - xlines = LINES; - xcols = COLS; + getmaxyx(stdscr, xlines, xcols); int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX; int onscreen = xlines - 4;