diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-05-12 07:51:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-11 23:51:42 +0000 |
| commit | b51cf60c8d94ee54208a5e9844aeaf677741cca7 (patch) | |
| tree | c163b9c9bf95a932591d861075a2a85dcc3bc604 /runtime/lua/vim/_stringbuffer.lua | |
| parent | 5f7237f54bac6ee58e8b6773b2276eee8cfe5c41 (diff) | |
| download | rneovim-b51cf60c8d94ee54208a5e9844aeaf677741cca7.tar.gz rneovim-b51cf60c8d94ee54208a5e9844aeaf677741cca7.tar.bz2 rneovim-b51cf60c8d94ee54208a5e9844aeaf677741cca7.zip | |
vim-patch:9.2.0471: vimvars di_key initialized at runtime (#39747)
Problem: evalvars_init() copies each vimvar's name into di_key at
startup and runtime-checks that the name fits in
DICTITEM16_KEY_LEN, even though all names are known at
compile time.
Solution: Embed the name in di_key via the VV_NAME macro so the
initialization happens at compile time. Drop the
runtime length check and the STRCPY loop (John Marriott).
closes: vim/vim#20185
https://github.com/vim/vim/commit/1b65cfbac5c5bbad108548908e77697111ad4a3f
Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions