summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Janke <andrew@apjanke.net>2015-06-08 07:19:57 -0400
committerAndrew Janke <andrew@apjanke.net>2015-06-08 07:19:57 -0400
commit0bda651dfd04801db573c0fc09aa37041e066ae9 (patch)
tree0eeb57dceeed85e53f4249028f7121e62e480c28
parent4224c2a1af2a1b99c14ef81012af321c39856cf5 (diff)
downloadzsh-0bda651dfd04801db573c0fc09aa37041e066ae9.tar.gz
zsh-0bda651dfd04801db573c0fc09aa37041e066ae9.tar.bz2
zsh-0bda651dfd04801db573c0fc09aa37041e066ae9.zip
Fix the spectrum_ls implementation in spectrum.zsh
-rw-r--r--lib/spectrum.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh
index b683aca29..77e0dddb6 100644
--- a/lib/spectrum.zsh
+++ b/lib/spectrum.zsh
@@ -25,13 +25,13 @@ ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab o
# Show all 256 colors with color number
function spectrum_ls() {
for code in {000..255}; do
- print -P -- "$code: %F{$code}$ZSH_SPECTRUM_TEXT%f"
+ print -P -- "$code: %{$FG[$code]%}$ZSH_SPECTRUM_TEXT%{$reset_color%}"
done
}
# Show all 256 colors where the background is set to specific color
function spectrum_bls() {
for code in {000..255}; do
- print -P -- "$BG[$code]$code: $ZSH_SPECTRUM_TEXT %{$reset_color%}"
+ print -P -- "$code: %{$BG[$code]%}$ZSH_SPECTRUM_TEXT%{$reset_color%}"
done
}