From 691fdc7c46673aa58e3f925e64c98630779cb3cd Mon Sep 17 00:00:00 2001 From: Ininsico Date: Fri, 29 May 2026 12:16:58 +0500 Subject: [PATCH] fix(colorize): pass ZSH_COLORIZE_CHROMA_FORMATTER to cless function The cless function did not forward the ZSH_COLORIZE_CHROMA_FORMATTER environment variable to the colorize_cat preprocessor, causing colors to render incorrectly on 256-color terminals when using chroma as the syntax highlighter. ccat worked correctly because it passed the variable directly. Fixes #12650 --- plugins/colorize/colorize.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh index c49acd864..68b620b82 100644 --- a/plugins/colorize/colorize.plugin.zsh +++ b/plugins/colorize/colorize.plugin.zsh @@ -90,6 +90,7 @@ colorize_less() { # (e.g. when not scrolled to the bottom) while already the next file will be displayed. local LESSOPEN="| zsh -c 'source \"$ZSH_COLORIZE_PLUGIN_PATH\"; \ ZSH_COLORIZE_TOOL=$ZSH_COLORIZE_TOOL ZSH_COLORIZE_STYLE=$ZSH_COLORIZE_STYLE \ + ZSH_COLORIZE_CHROMA_FORMATTER=$ZSH_COLORIZE_CHROMA_FORMATTER \ colorize_cat %s 2> /dev/null'" # LESSCLOSE will be set to prevent any errors by executing a user script