aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-07 13:39:11 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-07 13:39:11 -0700
commit393778ffabecc8fabadc72b9f0bce5340863406d (patch)
tree707f3ec1834c7c2dbbb49226f598e883add52cda /bp.c
parentf3eb2e99cdca225a66ae2d78f59abe2fa0d85482 (diff)
Shortening \033[0m -> \033[m
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bp.c b/bp.c
index 5e77a17..b55b236 100644
--- a/bp.c
+++ b/bp.c
@@ -94,7 +94,7 @@ static file_t *backup_file;
static inline void fprint_filename(FILE *out, const char *filename)
{
if (!filename[0]) return;
- if (options.format == FORMAT_FANCY) fprintf(out, "\033[0;1;4;33m%s\033[0m\n", filename);
+ if (options.format == FORMAT_FANCY) fprintf(out, "\033[0;1;4;33m%s\033[m\n", filename);
else fprintf(out, "%s:\n", filename);
}
@@ -317,7 +317,7 @@ static int process_file(def_t *defs, const char *filename, pat_t *pattern)
cache_destroy(f);
if (recycle_all_matches() != 0)
- fprintf(stderr, "\033[33;1mMemory leak: there should no longer be any matches in use at this point.\033[0m\n");
+ fprintf(stderr, "\033[33;1mMemory leak: there should no longer be any matches in use at this point.\033[m\n");
destroy_file(&f);
(void)fflush(stdout);
return matches;