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.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 247fc9a..526cbd7 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -3836,9 +3836,20 @@
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
};