Christian Brabandt wrote:
> Hi Bram!
>
> On Mi, 06 Feb 2013, Bram Moolenaar wrote:
>
> >
> > Patch 7.3.799
> > Problem: The color column is not correct when entering a buffer. (Ben
> > Fritz)
> > Solution: Call check_colorcolumn() if 'textwidth' changed. (Christian
> > Brabandt)
> > Files: src/buffer.c
>
> This segfaults for me at Test 87 in test49.vim This patch fixes it:
>
> diff --git a/src/buffer.c b/src/buffer.c
> --- a/src/buffer.c
> +++ b/src/buffer.c
> @@ -1442,7 +1442,7 @@
> buf_T *buf;
> {
> #ifdef FEAT_SYN_HL
> - long old_tw = curbuf->b_p_tw;
> + long old_tw = buf_valid(curbuf) ? curbuf->b_p_tw : 0;
> #endif
>
> /* Copy buffer and window local option values. Not for a help buffer. */
Any idea why it crashes for you and not for me?
Perhaps should run under valgrind.
--
ARTHUR: CHARGE!
[The mighty ARMY charges. Thundering noise of feet. Clatter of coconuts.
Shouts etc. Suddenly there is a wail of a siren and a couple of police
cars roar round in front of the charging ARMY and the POLICE leap out and
stop them. TWO POLICEMAN and the HISTORIAN'S WIFE. Black Marias skid up
behind them.]
HISTORIAN'S WIFE: They're the ones, I'm sure.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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/groups/opt_out.