0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.1044

Problem:    Python: No {Buffer,TabPage,Window}.valid attributes.
Solution:   Python patch 5: add .valid (ZyX)
This commit is contained in:
Bram Moolenaar
2013-05-29 22:15:30 +02:00
parent 3e734ea2c7
commit 9e822c00b1
8 changed files with 85 additions and 8 deletions

View File

@@ -1125,6 +1125,9 @@ BufferGetattr(PyObject *self, char *name)
{
PyObject *r;
if ((r = BufferAttrValid((BufferObject *)(self), name)))
return r;
if (CheckBuffer((BufferObject *)(self)))
return NULL;
@@ -1206,6 +1209,9 @@ TabPageGetattr(PyObject *self, char *name)
{
PyObject *r;
if ((r = TabPageAttrValid((TabPageObject *)(self), name)))
return r;
if (CheckTabPage((TabPageObject *)(self)))
return NULL;
@@ -1224,6 +1230,9 @@ WindowGetattr(PyObject *self, char *name)
{
PyObject *r;
if ((r = WindowAttrValid((WindowObject *)(self), name)))
return r;
if (CheckWindow((WindowObject *)(self)))
return NULL;