summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/ls.c b/src/commands/ls.c
index 8d64f74..934762d 100644
--- a/src/commands/ls.c
+++ b/src/commands/ls.c
@@ -261,7 +261,7 @@ static void list_files(struct FileInfo* files, int file_len, struct FileListInfo
putchar('\n');
}
} else if (flags->one_column) {
- printf("%s%s%s\n", color, finfo.name, flags->colored != NO ? "\x1b[0m" : "");
+ printf("%s%s%s\n", flags->colored != NO ? color : "", finfo.name, flags->colored != NO ? "\x1b[0m" : "");
} else {
if (info.total_len > w.ws_col) {
if (i != 0 && i % row_count == 0) putchar('\n');