mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
netbsd-curses: fix broken statusbar issue
See https://github.com/sabotage-linux/netbsd-curses/issues/46
This commit is contained in:
parent
bca5763cf7
commit
0427f70c4e
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue