Christian Brabandt wrote:

> This is a test case:
> ./vim -u NONE -U NONE -N -c "set enc=latin1|echo '.*d' =~ '\<.*d'"
> 
> 
> Unfortunately, I haven't been able to create a test case for this. For 
> some reason, when running the test suite, it doesn't trigger the crash 
> (probably, because reg_buf is set somewhere)
> 
> Attached is a better patch, I think.

That doensn't really work, because reg_buf is not reset to NULL in
functions that use curbuf.  I think it's simpler to always set reg_buf
in the entry points.  I'll make a patch like that, please test.

-- 
    [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



Raspunde prin e-mail lui