Skip to content

Commit 877be96

Browse files
committed
Upgrade CSApprox to 1.1.0 with the included rgb.txt
1 parent 1a723df commit 877be96

File tree

3 files changed

+764
-7
lines changed

3 files changed

+764
-7
lines changed

doc/CSApprox.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\___//___//_/ |_|/ .__// .__//_/ \___//_\_\ ~
99
/_/ /_/ ~
1010
For Vim version 7.0 or newer
11-
Last changed 05 Oct 2008
11+
Last changed 28 Oct 2008
1212

1313
By Matt Wozniski
1414
mjw@drexel.edu
@@ -162,11 +162,12 @@ g:CSApprox_attr_map *g:CSApprox_attr_map*
162162
g:CSApprox_extra_rgb_txt_dirs *g:CSApprox_extra_rgb_txt_dirs*
163163
When the colorscheme author uses a color by name, CSApprox needs to figure
164164
out what #rrggbb value it stands for. It does this by parsing rgb.txt,
165-
but first needs to locate it. It has a default search path included, but
166-
should it fail to find rgb.txt, this variable can be set to a List of
167-
other directories that ought to be searched. Default search path: >
165+
but first needs to locate it. It has a default search path included, and
166+
will also search in any directory in the user's 'runtimepath', but first
167+
any directory included in this variable will be searched. Failing to find
168+
any valid rgb.txt is an unrecoverable error. Default search path: >
168169
[ /usr/local/share/X11, /usr/share/X11, /etc/X11, /usr/local/lib/X11,
169-
/usr/lib/X11, /usr/local/X11R6/lib/X11, /usr/X11R6/lib/X11]
170+
/usr/lib/X11, /usr/local/X11R6/lib/X11, /usr/X11R6/lib/X11 ]
170171
171172
g:CSApprox_approximator_function *g:CSApprox_approximator_function*
172173
If the default approximation function doesn't work well enough, the user
@@ -347,6 +348,9 @@ kterm (as of version 6.2.0)
347348
==============================================================================
348349
7. Changelog *csapprox-changelog*
349350

351+
1.10 28 Oct 2008 Enable running on systems with no rgb.txt (Penn Su)
352+
Begin distributing a copy of rgb.txt with CSApprox
353+
350354
1.00 04 Oct 2008 First public release
351355

352356
0.90 14 Sep 2008 Initial beta release

plugin/CSApprox.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" CSApprox: Make gvim-only colorschemes work transparently in terminal vim
22
" Maintainer: Matthew Wozniski (mjw@drexel.edu)
3-
" Date: Sun, 05 Oct 2008 00:26:22 -0400
4-
" Version: 1.00
3+
" Date: Tue, 28 Oct 2008 01:35:25 -0400
4+
" Version: 1.10
55
" History: :help csapprox-changelog
66

77
" Whenever you change colorschemes using the :colorscheme command, this script
@@ -294,6 +294,7 @@ function! s:UpdateRgbHash()
294294
\ '/usr/lib/X11',
295295
\ '/usr/local/X11R6/lib/X11',
296296
\ '/usr/X11R6/lib/X11' ]
297+
\ + split(globpath(&rtp, ''), '\n')
297298
let s:rgb = copy(s:rgb_defaults)
298299
sil! let lines = readfile(dir . '/rgb.txt')
299300

0 commit comments

Comments
 (0)