static char buf[NAME_MAX + 65] __attribute__ ((aligned));
size_t ncols = COLS;
int nlines = MIN(LINES - 4, ndents), i, attrs;
- bool mode_changed = FALSE;
/* Clear screen */
erase();
attroff(A_UNDERLINE);
/* Fallback to light mode if less than 35 columns */
- if (ncols < 41 && cfg.showdetail) {
+ if (ncols < 35 && cfg.showdetail) {
cfg.showdetail ^= 1;
printptr = &printent;
- mode_changed = TRUE;
}
/* Calculate the number of cols available to print entry name */
} else
printmsg("0/0");
}
-
- if (mode_changed) {
- cfg.showdetail ^= 1;
- printptr = &printent_long;
- }
}
static void browse(char *ipath)