On 15:33 Fri 30 Jan , Ingo Karkat wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 29-Jan-2015 22:05, Marcin Szamotulski wrote:
> > On 17:13 Thu 29 Jan , Ingo Karkat wrote:
> >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> >>
> >> Hello Vim developers,
> >>
> >> the new range handling on :argdo (and :bufdo, :windo) proceeds
> >> even if a silly (and invalid) range is passed to it:
> >>
> >> $ vim -N -u NONE :args *.txt :/foo/,/bar/argdo echo bufnr('')
> >> E14: Invalid address 2 "INSTALLmac.txt" 67 lines, 1942
> >> characters 3 "INSTALLpc.txt" 513 lines, 19434 characters 4
> >> "INSTALLvms.txt" 393 lines, 12432 characters 5 "INSTALLx.txt" 165
> >> lines, 5354 characters 6 "README.txt" 143 lines, 5178 characters
> >> 7
> >>
> >> In contrast, :1,999argdo echo bufnr('') correctly aborts with
> >> E16: Invalid range
> >>
> >> - -- regards, ingo
> >
> > The attached patch fixes this and also fixes a typo in a comment.
> >
> > Regards, Marcin
>
> Thanks Marcin for that very quick response. However, your patch didn't
> fix the given problem; two very similar other places need to set cmd
> to NULL, too. Please see the attached, revised patch (still including
> the fixed typo).
>
> - -- regards, ingoThanks Ingo, indeed I missed the other places. Now cmd is set to NULL before every `goto error` as it should be. Regards, Marci -- -- 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.
signature.asc
Description: Digital signature
