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: hover popup-filter, remove redundant code #441

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

Song-Tianxiang
Copy link
Contributor

The original few lines of code are redundant.
Just return false and let vim handle the other keys. The redundant code disabled mouse scrolling, and the popup will be closed automatically after some seconds (I don't know why it is closed automatically)

The original few lines of code are redundant.
Just return false and let vim handle the other keys.
The redundant code disabled mouse scrolling, and the popup will be closed automatically after some seconds (I don't know why it is closed automatically)
@Song-Tianxiang Song-Tianxiang changed the title fix hover popup-filter, remove redundant code fix: hover popup-filter, remove redundant code Jan 16, 2024
# For any other key, close the hover window
hoverWin->popup_close()
endif

Copy link
Owner

Choose a reason for hiding this comment

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

Pressing Escape should close the hover popup window. With the above change, the escape key will not close the hover window. An explicit check for Esc key should be added to close the popup window.

The default way uses <C-c> to close the popup window, the escape key is added to also close the popup window.
@yegappan yegappan merged commit 255170b into yegappan:main Jan 17, 2024
2 checks passed
@Song-Tianxiang Song-Tianxiang deleted the patch-1 branch January 17, 2024 06:50
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