API: fix crash on copy_object(kObjectTypeWindow) #11651

Closes #11646
This commit is contained in:
Ghjuvan Lacambre authored and Justin M. Keyes committed 2020-01-02 02:02:26 -08:00
1 parent fafd636267
commit 1bf90bf9d3
1 file changed
+3
+3
View File
@@ -1363,6 +1363,9 @@ Dictionary copy_dictionary(Dictionary dict)
Object copy_object(Object obj)
{
switch (obj.type) {
case kObjectTypeBuffer:
case kObjectTypeTabpage:
case kObjectTypeWindow:
case kObjectTypeNil:
case kObjectTypeBoolean:
case kObjectTypeInteger: