Patch: Fix the bug that getbufvar() returned improper dictionary of variables

3 views
Skip to first unread message

Kana Natsuno

unread,
Jun 25, 2008, 8:05:28 PM6/25/08
to vim_dev
Hello, Vimmers.

I found a bug in getbufvar(). With {varname} == "", it returns
the dictionary of variables which are local to the current buffer
instead of the buffer specified by {expr}. It should return the
dictionary for the latter buffer.

I wrote a patch to fix this bug. See the attached file.


--
To Vim, or not to Vim.
kana <http://whileimautomaton.net/>

getbufvar.patch

Bram Moolenaar

unread,
Jun 26, 2008, 4:18:56 PM6/26/08
to Kana Natsuno, vim_dev

Kana Natsuno wrote:

> I found a bug in getbufvar(). With {varname} =3D=3D "", it returns


> the dictionary of variables which are local to the current buffer
> instead of the buffer specified by {expr}. It should return the
> dictionary for the latter buffer.
>
> I wrote a patch to fix this bug. See the attached file.

Thanks, I'll include it.

--
From "know your smileys":
% Bike accident. A bit far-fetched, I suppose; although...
o _ _ _
_o /\_ _ \\o (_)\__/o (_)
_< \_ _>(_) (_)/<_ \_| \ _|/' \/
(_)>(_) (_) (_) (_) (_)' _\o_

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages