-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override nested arrays when merging TOML #2145
Override nested arrays when merging TOML #2145
Conversation
I'm pretty sure this doesn't affect the merging behavior for |
d634e7f
to
29ea73a
Compare
|
We merge the elements of arrays for the top-level array. For `languages.toml`, this is the array of languages. For any nested arrays, we simply take the `right` array as-is instead of using the union of `left` and `right`. closes helix-editor#1000
29ea73a
to
5c9e5e5
Compare
crate::merge_toml_values(b, a) | ||
crate::merge_toml_values(b, a, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you linked the wrong PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! 🤦
I meant #1249
Looks like there's some follow-up issues This reverts commit c8cfd0b.
We merge the elements of arrays for the top-level array. For
languages.toml
, this is the array of languages. For any nestedarrays, we simply take the
right
array as-is instead of usingthe union of
left
andright
.closes #1000