Bug#587704: vim-gnome: built-in perl emulator Buffer->Get method doesn't work as documented

Britton Kerin britton.kerin at gmail.com
Fri Jul 2 04:11:43 UTC 2010


Oops, I didn't see that you needed array context... it seems to return
nothing when
called in scalar context, which is slightly weird but not contrary to the docs.

Britton

On Thu, Jul 1, 2010 at 5:21 AM, James Vega <jamessan at debian.org> wrote:
> On Wed, Jun 30, 2010 at 04:52:17PM -0700, Britton Leo Kerin wrote:
>> This fragment:
>>
>> our $curbuf;
>> my $buf_header = $curbuf->Get( 1 .. 3 );
>>
>> Doesn't work as described in the documentation, I end up with $buf_header empty
>> (with a buffer that does contain these lines).
>
> “my @buf_header = $curbuf->Get(1 .. 3);” works fine.  Were you expecting
> $buf_header to be 3 due to the list being used in scalar context?
>
> --
> James
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEAREDAAYFAkwsiD0ACgkQDb3UpmEybUCL+wCfd8K82OOQ/MjsL+zDefmHklUr
> GkEAn2HKcX3ekZuLHhJhlB5ON4J60Foo
> =vTEx
> -----END PGP SIGNATURE-----
>
>





More information about the pkg-vim-maintainers mailing list