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: one more item than max_item_count is displayed #1811

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

zhyu
Copy link
Contributor

@zhyu zhyu commented Feb 2, 2024

I found nvim-cmp always displays one more item than the source[n].max_item_count.

I checked the implementation, which seems to be working like if max_item_count is greater or equal to zero, append one item and reduce the max_item_count by one :)

@hrsh7th
Copy link
Owner

hrsh7th commented Feb 2, 2024

Thank you!

@hrsh7th hrsh7th merged commit 04e0ca3 into hrsh7th:main Feb 2, 2024
williamboman pushed a commit to williamboman/nvim-cmp that referenced this pull request Feb 26, 2024
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