Skip to content

Conversation

@cevhyruz
Copy link
Contributor

@cevhyruz cevhyruz commented Apr 15, 2023

May fix #2139

@cevhyruz cevhyruz changed the title fix wrap() not passing arguments to API calls. fix(#2139): wrap function not passing arguments to API calls. Apr 15, 2023
@gegoune
Copy link
Collaborator

gegoune commented Apr 15, 2023

That might be indeed needed. Thank you.
Tested with:

nvim --clean --noplugin \
 -c 'set rtp+=~/.local/share/nvim/site/pack/packer/start/nvim-tree.lua' \
 -c 'lua require("nvim-tree").setup({})' \
 -c 'lua require("nvim-tree.api").tree.toggle({focus=false})'

Changing focus without path in this PR takes no effect. This PR fixes it.

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 quick fix!

@alex-courtis alex-courtis merged commit a8a4834 into nvim-tree:master Apr 15, 2023
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.

API tree.toggle() not working after the udpate.

3 participants