yaml: keep original value when anchor and target node both defines the same key

When merging an anchor into a target yaml node, and both the target
node and the anchor defines the same key(s), keep the value from the
target node.

Closes #286
This commit is contained in:
Daniel Eklöf 2023-04-09 09:27:31 +02:00
parent 5e3859f218
commit 971361b046
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 19 additions and 10 deletions

View file

@ -50,12 +50,15 @@
* i3/sway: regression; persistent workspaces shown twice
([#253][253]).
* pipewire: use roundf instead of ceilf for more accuracy ([#262][262])
* Crash when a yaml anchor has a value to already exists in the target
yaml node ([#286][286]).
[239]: https://codeberg.org/dnkl/yambar/issues/239
[241]: https://codeberg.org/dnkl/yambar/issues/241
[251]: https://codeberg.org/dnkl/yambar/pulls/251
[253]: https://codeberg.org/dnkl/yambar/issues/253
[262]: https://codeberg.org/dnkl/yambar/issues/262
[286]: https://codeberg.org/dnkl/yambar/issues/286
### Security