Browse Source

ls: Lazily align the number of hard links in ls output :^)

Fixes #5155
Andreas Kling 4 years ago
parent
commit
4ab2ff95ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Utilities/ls.cpp

+ 1 - 1
Userland/Utilities/ls.cpp

@@ -288,7 +288,7 @@ static bool print_filesystem_object(const String& path, const String& name, cons
     else
         printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
 
-    printf(" %u", st.st_nlink);
+    printf(" %3u", st.st_nlink);
 
     auto username = users.get(st.st_uid);
     if (!flag_print_numeric && username.has_value()) {