Christian Brabandt wrote:

> this patch fixes this item from the todo list:
> 
>     /[^\n] does match at a line break.  Expected to do the same as /.
> 
> Vim now handles /[^\n] exactly like matching the '.'

Thanks, I'll update the todo list.

> While making this patch, I noticed, that currently echo match("\n", '.')
> returns true. This might be unexpected, since '.' shouldn't match
> newlines I guess. But changing this would be an incomptabile change,
> since otherwise A^@A or A^MA wouldn't match anymore and I guess, this
> wouldn't not be intended. So I left it untouched.

Let's not make changes that might cause some scripts to fail in
unexpected ways.

> But it should probably be documented somewhere.

Yes.

> BTW, hg seems to handle the testfiles as binary files (probably because 
> of the NUL in there). I hope this doesn't cause problems applying it, 
> but if it does, I can mail you the 2 complete files.

Hmm, I don't know how to apply that binary patch, but perhaps "patch"
knows.  Anyway, if you can send those files in a zip'ed attachment it
will certainly work.

-- 
>From "know your smileys":
 %-)    After staring at screen for 15 hours

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