Christian Brabandt wrote:
> Bram,
> if you reset the 'cp' option, the numberwidth value is not adjusted,=20
> until you change a file. Consider this example from the vim source=20
> directory:
>
> vim -u NONE -c 'set nu' xpm_w32.h
>
> Now do
> :set numberwidth?
> (outputs: 8)
> :set nocp
> :set numberwidth?
>
> This will output 4, but note that the actual numberwidth is still 8 i.e.=20
> the numbercolumn still is 8 chars wide and this will stay, until you add=20
> or remove a line.
>
> Here is a patch, that fixes this, by caching the numberwidth value and=20
> make the number_width() function check, whether the 'numberwidth' option=20
> value has changed.
Thanks!
--
[clop clop]
ARTHUR: Old woman!
DENNIS: Man!
ARTHUR: Man, sorry. What knight lives in that castle over there?
DENNIS: I'm thirty seven.
ARTHUR: What?
DENNIS: I'm thirty seven -- I'm not old!
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.