From e950f9992b291a07e4fb41cb561156f5b382cd5d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 10 Jun 2018 13:55:55 +0200 Subject: patch 8.1.0041: attribute "width" missing from python window attribute list Problem: Attribute "width" missing from python window attribute list. Solution: Add the item. (Ken Takata) Order the list like the items are used in the WindowAttr() function. --- src/if_py_both.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 247fc9a08..526cbd784 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -3836,9 +3836,20 @@ get_firstwin(TabPageObject *tabObject) else return firstwin; } + +// Use the same order as in the WindowAttr() function. static char *WindowAttrs[] = { - "buffer", "cursor", "height", "vars", "options", "number", "row", "col", - "tabpage", "valid", + "buffer", + "cursor", + "height", + "row", + "width", + "col", + "vars", + "options", + "number", + "tabpage", + "valid", NULL }; -- cgit v1.2.1