Skip to content

Conversation

devxpain
Copy link
Contributor

The wrap_node and wrap_node_or_nil functions now correctly accept Node? to handle nil values, resolving a warning about incorrect argument counts in api.tree.change_root_to_node().

The `wrap_node` and `wrap_node_or_nil` functions now correctly accept `Node?` to handle nil values, resolving a warning about incorrect argument counts in `api.tree.change_root_to_node()`.
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the fix @devxpain

API is a bit of a mess right now, but it will be properly tidied and annotated during the long running project Multiple Instances

@alex-courtis alex-courtis merged commit f7c65e1 into nvim-tree:master Nov 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants