Skip to content

Commit 1bf90bf

Browse files
glacambrejustinmk
authored andcommitted
API: fix crash on copy_object(kObjectTypeWindow) neovim#11651
Closes neovim#11646
1 parent fafd636 commit 1bf90bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nvim/api/private/helpers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,9 @@ Dictionary copy_dictionary(Dictionary dict)
13631363
Object copy_object(Object obj)
13641364
{
13651365
switch (obj.type) {
1366+
case kObjectTypeBuffer:
1367+
case kObjectTypeTabpage:
1368+
case kObjectTypeWindow:
13661369
case kObjectTypeNil:
13671370
case kObjectTypeBoolean:
13681371
case kObjectTypeInteger:

0 commit comments

Comments
 (0)