File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -810,7 +810,8 @@ displays the file size.
810
810
is an alternative form of the
811
811
.B size
812
812
format. It displays the size of the files and for directories it just
813
- shows SUB\- DIR or UP\-\- DIR.
813
+ shows SUB\- DIR or UP\-\- DIR unless the directory size is computed by the
814
+ "Show directory sizes" command.
814
815
.TP
815
816
.B type
816
817
displays a one character wide type field. This character is similar to
Original file line number Diff line number Diff line change @@ -424,7 +424,8 @@ string_file_size_brief (const file_entry_t *fe, int len)
424
424
if (S_ISLNK (fe -> st .st_mode ) && !link_isdir (fe ))
425
425
return _ ("SYMLINK" );
426
426
427
- if ((S_ISDIR (fe -> st .st_mode ) || link_isdir (fe )) && !DIR_IS_DOTDOT (fe -> fname -> str ))
427
+ if ((S_ISDIR (fe -> st .st_mode ) || link_isdir (fe )) && !fe -> f .dir_size_computed
428
+ && !DIR_IS_DOTDOT (fe -> fname -> str ))
428
429
return _ ("SUB-DIR" );
429
430
430
431
return string_file_size (fe , len );
You can’t perform that action at this time.
0 commit comments