diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-29 22:15:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-29 22:15:30 +0200 |
commit | 9e822c00b1fdf3e0604dbb520f593d8de6c15098 (patch) | |
tree | 2bfb2b78ea873331cc74f1d32183114b391c9aaf /src/if_python.c | |
parent | 3e734ea2c7d6bc78cf5d2851c1e4ddbad2e028d1 (diff) | |
download | vim-git-9e822c00b1fdf3e0604dbb520f593d8de6c15098.tar.gz |
updated for version 7.3.1044v7.3.1044
Problem: Python: No {Buffer,TabPage,Window}.valid attributes.
Solution: Python patch 5: add .valid (ZyX)
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index 7b82a7f11..f8e72f5fc 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -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; |