mirror of
https://github.com/jarun/nnn.git
synced 2025-03-21 13:52:20 +00:00
Set max cols required to show file info
This commit is contained in:
parent
b411893137
commit
54af324e85
1 changed files with 2 additions and 2 deletions
|
@ -2809,7 +2809,7 @@ static void redraw(char *path)
|
|||
attroff(A_UNDERLINE);
|
||||
|
||||
/* Fallback to light mode if less than 35 columns */
|
||||
if (ncols < 35 && cfg.showdetail) {
|
||||
if (ncols < 41 && cfg.showdetail) {
|
||||
cfg.showdetail ^= 1;
|
||||
printptr = &printent;
|
||||
mode_changed = TRUE;
|
||||
|
@ -2817,7 +2817,7 @@ static void redraw(char *path)
|
|||
|
||||
/* Calculate the number of cols available to print entry name */
|
||||
if (cfg.showdetail)
|
||||
ncols -= 30;
|
||||
ncols -= 36;
|
||||
else
|
||||
ncols -= 5;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue