neovim/test/functional
Justin M. Keyes cca6c4c698 feat(rpc): allow empty string key in msgpack => Vim conversion
Problem:
Since e057b38e70 #20757 we support empty key in JSON encode/decode,
but we don't allow it in RPC object => Vim dict conversion. But empty
string is a valid key in Vim dicts and the msgpack spec.

Empty string key was disallowed in 7c01d5ff92 (2014) but that
commit/PR doesn't explicitly discuss it, so presumably it was a "seems
reasonable" decision (or Vimscript didn't allow empty keys until later).

Solution:
Remove the check in `object_to_vim()`. Note that
`tv_dict_item_alloc_len` will invoke `memcpy(…, 0)` but that's allowed
by the C spec: https://stackoverflow.com/a/3751937/152142
2023-12-07 12:57:25 +01:00
..
api feat(rpc): allow empty string key in msgpack => Vim conversion 2023-12-07 12:57:25 +01:00
autocmd test: set notermguicolors in tests 2023-12-06 10:38:44 -08:00
core Merge pull request #26407 from gpanders/default-tgc 2023-12-06 10:55:50 -08:00
editor fix(extmark): restore extmarks when completing original text 2023-11-29 23:38:27 +01:00
ex_cmds docs: small fixes 2023-10-10 19:20:32 +02:00
fixtures build: remove PVS 2023-11-12 21:26:39 +01:00
legacy vim-patch:9.0.2145: wrong scrolling in insert mode with smoothscroll (#26375) 2023-12-04 06:42:47 +08:00
lua fix(json): allow objects with empty keys #25564 2023-12-06 07:56:04 -08:00
options vim-patch:9.0.2035: [security] use-after-free with wildmenu (#25687) 2023-10-17 22:43:42 +08:00
plugin test: skip failing watch file tests on freebsd (#26110) 2023-11-19 18:37:49 +01:00
provider fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
shada fix(shada): update marks when using delmarks! (#24978) 2023-09-03 10:34:09 +08:00
terminal fix(terminal): never propagate $COLORTERM from outer env (#26440) 2023-12-07 19:14:56 +08:00
treesitter fix(treesitter): allow passing lang to vim.treesitter.get_node() now correctly takes opts.lang (#26360) 2023-12-04 10:00:49 +01:00
ui test(inccommand_spec): actually trigger 'inccommand' preview 2023-12-07 15:32:56 +08:00
vimscript feat(rpc): allow empty string key in msgpack => Vim conversion 2023-12-07 12:57:25 +01:00
example_spec.lua
helpers.lua fix(terminal): never propagate $COLORTERM from outer env (#26440) 2023-12-07 19:14:56 +08:00
preload.lua test: remove unused variable (#21552) 2022-12-29 07:20:42 +08:00