Re: Bug with ~ in substitution?
- Gary Holloway wrote:
> Try these commands in sequence:I can reproduce this (only when compiled with boundary checks). When
> I either get some garbage in my buffer, or get a "Vim: Caught deadly signal
> SEGV" -- looks like an internal buffer may be getting overridden, or
> unitialized buffer read.
> Of course the intent was to remove the '~' characters (which I know should be
> done with :%s/\~//g), but I accidentally left off the backslash, and
> encountered what appears to be a bug.
"~" is empty it might read past the NUL at the end of a line. I'll make
a patch for it.
From "know your smileys":
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
/// Creator of Vim - Vi IMproved -- http://www.vim.org \\\
\\\ Project leader for A-A-P -- http://www.a-a-p.org ///
\\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///