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: Error on using select_next_entry and select_prev_entry #1989

Closed
wants to merge 2 commits into from

Conversation

thesantatitan
Copy link

Fixes #1988
get_selected_index was checking self.active before returning an index, which is actually false when select_next_entry is first called in typical usage using a mapping. Switched to how cursor was calculated before this PR #1986

This is because get_selected_index check self.active before returning the index, which is false when select_next_entry is first called
@samuelpx
Copy link

Sorry, might be totally out of place adding this here, but:

This fixes next and prev, but for some reason my autocomplete prompt is not by default selecting the first item in the list, to get to it I need to select_next then select_prev, any idea why?

@thesantatitan
Copy link
Author

@samuelpx link to your prompt? Or maybe post it here?

@Shougo
Copy link

Shougo commented Jul 16, 2024

It is the same fix?

#1993

@sjclayton
Copy link

Fixed by #1993, this can be closed.

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.

Custom Entries Error after 'get-selected' api
4 participants