From db67ded96b63c7c4c5dac7137ec91506403e1d3e Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Mon, 7 Sep 2026 07:53:20 -0700 Subject: [PATCH] fix(spectrum): build the colour tables independently of KSH_ARRAYS The table builder uses ${^codes} and the :^ zip flag, both of which expand only element 0 when KSH_ARRAYS is set, leaving FG and BG empty. The 256-iteration loop it replaced was option-independent. Co-Authored-By: Claude Opus 5 (1M context) --- lib/spectrum.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh index 13aaf8adb..86a939e8a 100644 --- a/lib/spectrum.zsh +++ b/lib/spectrum.zsh @@ -16,6 +16,7 @@ FX=( # Build the tables with array operations instead of a 256-iteration loop () { + setopt localoptions noksharrays local -a codes fg bg codes=({000..255}) fg=( "%{"$'\e'"[38;5;"${^codes}"m%}" )