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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user