diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index 3f768dcc0c..18b0bf3c16 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -384,10 +384,7 @@ void msgpack_rpc_from_object(const Object result, msgpack_packer *const res)                    && kObjectTypeTabpage == kObjectTypeWindow + 1,                    "Buffer, window and tabpage enum items are in order");      switch (cur.aobj->type) { -      case kObjectTypeNil: { -        msgpack_pack_nil(res); -        break; -      } +      case kObjectTypeNil:        case kObjectTypeLuaRef: {          // TODO(bfredl): could also be an error. Though kObjectTypeLuaRef          // should only appear when the caller has opted in to handle references, | 
