mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
shada: When packing header, pack mapping keys as strings, not binary
This commit is contained in:
@@ -1822,7 +1822,11 @@ static bool shada_pack_entry(msgpack_packer *const packer,
|
||||
break;
|
||||
}
|
||||
case kSDItemHeader: {
|
||||
msgpack_rpc_from_dictionary(entry.data.header, spacker);
|
||||
msgpack_pack_map(spacker, entry.data.header.size);
|
||||
for (size_t i = 0; i < entry.data.header.size; i++) {
|
||||
PACK_STRING(entry.data.header.items[i].key);
|
||||
msgpack_rpc_from_object(entry.data.header.items[i].value, spacker);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user