Yasuhiro Matsumoto wrote:
> It seems crash when deleting buffer that have settings of colorcolumn.
> You can reproduce this with following commands.
>
> gvim.exe -N -u NONE -U NONE -i NONE --noplugin -c "set cc=+1"
> :e a
> :new
> :only!
> :bd
>
> diff -r 15b934a16641 src/option.c
> --- a/src/option.c Wed Sep 14 19:04:40 2011 +0200
> +++ b/src/option.c Tue Sep 20 09:52:42 2011 +0900
> @@ -7036,6 +7036,9 @@
> int i;
> int j = 0;
>
> + if (wp->w_buffer == NULL)
> + return NULL;
> +
> for (s = wp->w_p_cc; *s != NUL && count < 255;)
> {
> if (*s == '-' || *s == '+')
Thanks. Previously it must have been unreliable, using a buffer pointer
that was already freed.
--
hundred-and-one symptoms of being an internet addict:
24. You realize there is not a sound in the house and you have no idea where
your children are.
/// 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