src/nnn.c | 9 +-------- diff --git a/src/nnn.c b/src/nnn.c index 5810913466e4b88e19c24d0e460b7f80c32adf85..61ffca836c34847c02e440ba91b15b14b7a92914 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2740,7 +2740,6 @@ { 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(); @@ -2806,10 +2805,9 @@ printw("%s\n\n", g_buf); 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 */ @@ -2876,11 +2874,6 @@ } printmsg(buf); } else printmsg("0/0"); - } - - if (mode_changed) { - cfg.showdetail ^= 1; - printptr = &printent_long; } }