Skip to content
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

fix(utils): fix utils.is_list #728

Merged
merged 2 commits into from
Apr 15, 2023
Merged

Conversation

bradsherman
Copy link
Contributor

#726 Introduced a bug because utils.is_list need to be executed in order to return a function that will return a boolean if the object is a list. This broke the tests, now it properly returns a boolean.

I ran the tests with the following command I got from the ci workflow yaml.

nvim --headless -u tests/minimal_init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal_init.lua', sequential = true}"

I also ran the formatter with:

stylua --config-path=stylua.toml lua/

@bradsherman bradsherman changed the title Fix utils.is_list fix(tests): fix utils.is_list Apr 14, 2023
@bradsherman bradsherman changed the title fix(tests): fix utils.is_list fix(utils): fix utils.is_list Apr 14, 2023
@bradsherman
Copy link
Contributor Author

@akinsho this should fix the problem introduced by the previous PR

Copy link
Owner

@akinsho akinsho left a comment

Choose a reason for hiding this comment

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

Thanks for tracking down the bug and raising the PR @bradsherman I've just left a comment as I think this logic can be simplified greatly

lua/bufferline/utils/init.lua Outdated Show resolved Hide resolved
@akinsho akinsho dismissed their stale review April 15, 2023 07:33

I've pushed a commit which applies the changes I mentioned

@akinsho akinsho merged commit 2c8d615 into akinsho:main Apr 15, 2023
4 checks passed
@bradsherman
Copy link
Contributor Author

Sorry I was away from my computer this weekend. That's much nicer - thanks for taking it over the finish line!

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.

None yet

2 participants