0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2018-06-10 13:55:55 +02:00
parent e31e256ba1
commit e950f9992b
4 changed files with 17 additions and 4 deletions

View File

@@ -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
};