diff src/if_py_both.h @ 14047:30a0068f6167 v8.1.0041

patch 8.1.0041: attribute "width" missing from python window attribute list commit https://github.com/vim/vim/commit/e950f9992b291a07e4fb41cb561156f5b382cd5d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 10 13:55:55 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jun 2018 14:00:07 +0200
parents 76a65058766f
children f761a55a8aed
line wrap: on
line diff
--- 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
 };