vim-monochrome

My fork of github.com/fxn/vim-monochrome
git clone https://git.sr.ht/~jbauer/vim-monochrome
Log | Files | Refs | README | LICENSE

commit 5128bf7130bdf2b5cd87305b9a896aa5c39a32a5
parent 64a33d97cbaa5dbb40e46dbac6de3614e5d141a2
Author: Xavier Noria <fxn@hashref.com>
Date:   Sat,  4 Jan 2014 23:34:05 +0100

simplify generator

Diffstat:
Mbin/generate.rb | 13++++---------
1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/bin/generate.rb b/bin/generate.rb @@ -52,15 +52,10 @@ def hi(group, options={}) tokens << "ctermbg=#{bg[:cterm]}" rest = options.keys.join(',') - if rest.empty? - tokens << "gui=NONE" - tokens << "cterm=NONE" - tokens << "term=NONE" - else - tokens << "gui=#{rest}" - tokens << "cterm=#{rest}" - tokens << "term=#{rest}" - end + rest = 'NONE' if rest.empty? + tokens << "gui=#{rest}" + tokens << "cterm=#{rest}" + tokens << "term=#{rest}" puts tokens.join(' ') end