toml: Fixed array indices not getting updated
The array metakey was not updated to the apropriate index when adding
array elements via the kdb set command, resulting array elements after
thge first getting discarded.
@@ -90,10 +90,7 @@ static void addMissingArrayKeys (KeySet * keys, Key * parent)
else
{
const Key * meta = findMetaKey (arrayRoot, "array");
- if (meta == NULL)
- {
keyUpdateArrayMetakey (arrayRoot, arrays->maxIndex);
- }
keyDel (arrays->name);
}
ArrayInfo * next = arrays->next;
