summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-04-04 14:56:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-04-15 14:45:08 -0400
commita571aa9ef6f3dc2099ee33c5040f8c54776ddece (patch)
treeb38b6656e4fcd225559d0c950fcbae4ff3165372 /color.c
parent44a2912b831f1c3f75fee82273e235ff78b5cb93 (diff)
downloadbfs-a571aa9ef6f3dc2099ee33c5040f8c54776ddece.tar.xz
color: Use three-letter codes for warnings and errors
No reason to potentially conflict with the two-letter codes GNU ls uses.
Diffstat (limited to 'color.c')
-rw-r--r--color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/color.c b/color.c
index ec4c178..d59875c 100644
--- a/color.c
+++ b/color.c
@@ -387,8 +387,8 @@ struct colors *parse_colors(const char *ls_colors) {
ret |= init_color(colors, "cyn", "01;36", &colors->cyan);
ret |= init_color(colors, "wht", "01;37", &colors->white);
- ret |= init_color(colors, "wr", "01;33", &colors->warning);
- ret |= init_color(colors, "er", "01;31", &colors->error);
+ ret |= init_color(colors, "wrn", "01;33", &colors->warning);
+ ret |= init_color(colors, "err", "01;31", &colors->error);
// Defaults from man dir_colors