diff options
author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2021-07-19 17:52:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 08:52:44 -0700 |
commit | 526fc609b83742430ff952f95ab3b56ef9f4951b (patch) | |
tree | ad6fd4f6ca9243585b56914edeaab494ca481ea9 /scripts/genvimvim.lua | |
parent | 3b2a85ff76c464ff317459672ce7d46417dd06a0 (diff) | |
download | rneovim-526fc609b83742430ff952f95ab3b56ef9f4951b.tar.gz rneovim-526fc609b83742430ff952f95ab3b56ef9f4951b.tar.bz2 rneovim-526fc609b83742430ff952f95ab3b56ef9f4951b.zip |
fix(shared): do not treat empty tables as list in deep extend (#15094)
An empty table was previously always treated as a list, which means that
while merging tables, whenever an empty table was encountered it would
always truncate any table on the left.
`vim.tbl_deep_extend("force", { b = { a = 1 } }, { b = {} })`
Before: `{ b = {} }`
After: `{ b = { a = 1 } }`
Diffstat (limited to 'scripts/genvimvim.lua')
0 files changed, 0 insertions, 0 deletions