-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Recalculate screen size on window resize #230
Comments
Be my guest. Patches welcome. 🙂 |
i am not sure how to calculate the y value as this breaks my prompt
I tried to use BUFFERLINES but not sure. |
The problem is that normal You need to be able to determine the vertical position of the cursor somehow. Using |
Actually, I just realized, even though we can no longer query the terminal for the cursor after |
Done. |
@MenkeTechnologies I found a better solution. Patch coming soon.™ |
Nah, never mind; it didn't really work. The best solution is simply to press ⬇️. That will expand the menu as far as possible. 🙂 |
zsh-autocomplete
version: 7662f28.autocomplete.screen-space only runs on precmd. Therefore _autocomplete__max_lines is incorrect when terminal was resized, prompt was moved up down without command running. In other words _autocomplete__screen_space is incorrect in these scenarios until precmd. Because of this, you can get stuck in loop where every letter typed results in listscroll mode.
Fix would be to recalculate _autocomplete__screen_space before each list-choices
The text was updated successfully, but these errors were encountered: