summaryrefslogtreecommitdiffstats
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-10 13:55:55 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-10 13:55:55 +0200
commite950f9992b291a07e4fb41cb561156f5b382cd5d (patch)
tree48dad4b4725b9409dccc2e0654f4fb70c9699553 /src/if_py_both.h
parente31e256ba1769a3a3ed7840d5cc9a01ab058b8bc (diff)
patch 8.1.0041: attribute "width" missing from python window attribute listv8.1.0041
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.
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 247fc9a088..526cbd7848 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
};