diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 13:19:23 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 13:19:23 -0400 |
commit | ce4f9f838da463c3e7c23718f3e587d453047965 (patch) | |
tree | b7723c6f97235a8e21ad77c4a5de872bfc0888d9 | |
parent | fi ls spacing (diff) | |
download | lazysphere-ce4f9f838da463c3e7c23718f3e587d453047965.tar.gz lazysphere-ce4f9f838da463c3e7c23718f3e587d453047965.tar.bz2 lazysphere-ce4f9f838da463c3e7c23718f3e587d453047965.zip |
fix missing newline on single row output
-rw-r--r-- | src/commands/ls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/ls.c b/src/commands/ls.c index 36725f2..1c8384a 100644 --- a/src/commands/ls.c +++ b/src/commands/ls.c @@ -218,6 +218,9 @@ static void list_files(struct FileInfo* files, int file_len, struct FileListInfo } } } + + if (info.total_len <= w.ws_col) printf("\n"); + } static bool is_dot_dir(const char* path) { |