Re: Vim patch level off-by-one in Cream About dialog
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2004-03-17 03:21:29
|
From: Ben Armstrong, Tue, 16 Mar 2004 15:20:40 -0400 > On Tue, 2004-03-16 at 12:13, Ben Armstrong wrote: > > > > The baffling thing is that although I added both the 6.2.354 and > > 6.2.355 patches, when I show the version with Help -> Cream > > About..., I am told vim is only at version 6.2.354. > > Well, it seems that Cream About is always telling me vim is at > exactly one version less than the current patch level. It's not a one-off bug, but a logic error in Cream_version(), in cream-lib.vim. Replace the lines: let i = 0 while i < 1000 let i = i + 1 if has("patch" . i) let mypatchlevel = mypatchlevel + 1 endif endwhile with let i = 0 while i < 1000 let i = i + 1 if has("patch" . i) let mypatchlevel = i endif endwhile Does that help? > 6.2.355 (and 6.2.356) did not solve the problem. However, installing > and configuring the locales package to change the default locale > from "C" to "en_US.UTF-8" did. Now I have nice little grey > angle-bracket prefix and suffix characters when I scroll > horizontally to see long lines in nowrap mode. > > Of course, in general, it is not terribly user-friendly that I had > to change my locale like that, but it works for me. Did you try a different font first? Cream on Linux is configured to use utf-8 by default, which works nearly flawlessly on GNOME2 if your font supports the characters. Unfortunately the former Linux weakness in font support means some systems still are configured to use legacy sets that have miserable support for extended character sets. I'm wondering if changing your locale changed the font set, too. It would be good if we could understand what in Cream might fix this for others experiencing the same problem. Should we filter display of extended characters based on &language? I'd hate to have to back down to 7-bit just because &language encoding wasn't identified properly. Who'd a thought "C" would limit this! (Eh? ;) -- Steve Hall [ dig...@mi... ] Cream... the Vim text editor in sheep's clothing! http://cream.sourceforge.net |