summaryrefslogtreecommitdiffstats
path: root/src/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c
index cc37e96..7c16ec5 100644
--- a/src/color.c
+++ b/src/color.c
@@ -809,7 +809,7 @@ static int print_path_colored(CFILE *cfile, const char *path, const struct BFTW
if (path == ftwbuf->path) {
nameoff = ftwbuf->nameoff;
} else {
- nameoff = xbasename(path) - path;
+ nameoff = xbaseoff(path);
}
if (print_dirs_colored(cfile, path, ftwbuf, flags, nameoff) != 0) {