X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.c;h=7f66c29fae57abceda30b1257c2a66626f3be0b2;hb=7ee906694c28ab7281492d5114d2afabd964bd41;hp=7bd424a8f6012859f40f2aa6210e7d4ce7686dc0;hpb=d9f405931fa3d96b2a80fe5ad8205eea7c443f56;p=git.git diff --git a/color.c b/color.c index 7bd424a8f..7f66c29fa 100644 --- a/color.c +++ b/color.c @@ -135,7 +135,7 @@ int git_config_colorbool(const char *var, const char *value, int stdout_is_tty) auto_color: if (stdout_is_tty < 0) stdout_is_tty = isatty(1); - if (stdout_is_tty || (pager_in_use && pager_use_color)) { + if (stdout_is_tty || (pager_in_use() && pager_use_color)) { char *term = getenv("TERM"); if (term && strcmp(term, "dumb")) return 1;