netbsd-curses: fix broken statusbar issue

See https://github.com/sabotage-linux/netbsd-curses/issues/46
This commit is contained in:
Arun Prakash Jana 2021-05-14 00:16:48 +05:30
parent bca5763cf7
commit 0427f70c4e
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -5783,8 +5783,7 @@ static void draw_line(char *path, int ncols)
static void redraw(char *path) static void redraw(char *path)
{ {
xlines = LINES; getmaxyx(stdscr, xlines, xcols);
xcols = COLS;
int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX; int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX;
int onscreen = xlines - 4; int onscreen = xlines - 4;