Fix oversight with CONFIG_FEATURE_AUTOWIDTH handling
This commit is contained in:
parent
b7077a7316
commit
6d687817a8
@ -923,10 +923,12 @@ extern int ls_main(int argc, char **argv)
|
|||||||
| SORT_NAME | SORT_ORDER_FORWARD
|
| SORT_NAME | SORT_ORDER_FORWARD
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
#ifdef CONFIG_FEATURE_AUTOWIDTH
|
||||||
/* Obtain the terminal width. */
|
/* Obtain the terminal width. */
|
||||||
get_terminal_width_height(0, &terminal_width, NULL);
|
get_terminal_width_height(0, &terminal_width, NULL);
|
||||||
/* Go one less... */
|
/* Go one less... */
|
||||||
terminal_width--;
|
terminal_width--;
|
||||||
|
#endif
|
||||||
nfiles = 0;
|
nfiles = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_FEATURE_LS_COLOR
|
#ifdef CONFIG_FEATURE_LS_COLOR
|
||||||
|
Loading…
Reference in New Issue
Block a user