From 7a9d8b7001f3f90471dc94ab31ec017f32ef8760 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 4 Jun 2016 17:00:48 +1000 Subject: Turn off colours once finished using them The colour of the package version could leak onto the next line in both -Qo and -Fo. Signed-off-by: Allan McRae --- src/pacman/query.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pacman/query.c') diff --git a/src/pacman/query.c b/src/pacman/query.c index 522212d3..a8f4e675 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -84,8 +84,9 @@ static void print_query_fileowner(const char *filename, alpm_pkg_t *info) { if(!config->quiet) { const colstr_t *colstr = &config->colstr; - printf(_("%s is owned by %s%s %s%s\n"), filename, colstr->title, - alpm_pkg_get_name(info), colstr->version, alpm_pkg_get_version(info)); + printf(_("%s is owned by %s%s %s%s%s\n"), filename, colstr->title, + alpm_pkg_get_name(info), colstr->version, alpm_pkg_get_version(info), + colstr->nocolor); } else { printf("%s\n", alpm_pkg_get_name(info)); } -- cgit v1.2.3-24-g4f1b