Reply to message «Re: Wish: <range>», sent 22:45:14 13 April 2011, Wednesday by Bram Moolenaar:
> You can use -range=1 to allow for a zero line number. I must apologize: I overlooked this possibility. It still does not allow to test for empty range. Original message: > ZyX wrote: > > > :com! -range TestZeroRange echo <line1> <line2> > > > :0TestZeroRange > > > > > > 1 1 > > > > > > Zero is converted to one. > > > > > > Shouldn't that be regarded a bug? > > > > 1. It is not a bug because first line has number `1', not `0'. > > 2. `:0read!echo "abc"' and `:1read!echo "abc"' are different, so you > > may want to > > punish Bram for having yet another hack for built-in commands. > > You can use -range=1 to allow for a zero line number.
signature.asc
Description: This is a digitally signed message part.
