Dynamically allocate JQ_COLORS escapes for truecolor support (#3282)

This commit is contained in:
SArpnt authored and GitHub committed 2025-05-31 15:49:17 +09:00
1 parent c6e041699d
commit aa977aa716
3 files changed
+76 -53

No files matched your search

+1 -1
View File
@@ -554,7 +554,7 @@ int main(int argc, char* argv[]) {
if (options & COLOR_OUTPUT) dumpopts |= JV_PRINT_COLOR;
if (options & NO_COLOR_OUTPUT) dumpopts &= ~JV_PRINT_COLOR;
if (getenv("JQ_COLORS") != NULL && !jq_set_colors(getenv("JQ_COLORS")))
if (!jq_set_colors(getenv("JQ_COLORS")))
fprintf(stderr, "Failed to set $JQ_COLORS\n");
if (jv_get_kind(lib_search_paths) == JV_KIND_NULL) {