commit 0427f70c4ef67a4830b3884a40f9ccb6e01fa3d2
parent bca5763cf7b4bf9269c44af1a2c964a2566a63c3
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Fri, 14 May 2021 00:16:48 +0530
netbsd-curses: fix broken statusbar issue
See https://github.com/sabotage-linux/netbsd-curses/issues/46
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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;