On Sat, Aug 01, 2015 at 04:27:53AM +0200, Dominique Pellé wrote:
> Hi
> 
> Vim-7.4.803 (and older) accesses invalid memory beyond end of
> string when doing:
> 
>   $ vim -u NONE -c 'exe "sc"'
> 
> Bug is fixed in attached patch.
> 
> Apparently, ":sc" is doing a  :substitute  command with the
> 'c' flag.  I could not find where it is documented, but perhaps
> I missed it in the doc.

:[range]s[ubstitute] [flags] [count]
:[range]&[&][flags] [count]                                     *:&*
…
                        The space between `:substitute` and the 'c', 'g' and
                        'r' flags isn't required, but in scripts it's a good
                        idea to keep it to avoid confusion.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui