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

feat(menu): prefer north direction if ghost_text is multiline #963

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xzbdmw
Copy link
Contributor

@xzbdmw xzbdmw commented Jan 8, 2025

closes #928

@@ -77,6 +79,7 @@ function menu.close()
menu.auto_show = config.auto_show
if not menu.win:is_open() then return end

menu.selected_item_idx = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed, otherwise menu opens -> select a multiline item -> menu closes -> menu open again, the new menu has previous menu state (selected_item_idx).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I'd need to set it to nil.

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.

Avoid covering multi line ghost text with menu
1 participant