Skip to content

Conversation

@stephenrauch
Copy link
Contributor

win32_output.scroll_buffer_to_prompt() tries to scroll the cursor onto the screen with a preference to place the cursor at the bottom if the buffer is larger than the view-port. This does not take in to account that the cursor may already be in the view-port. If the cursor is in the view-port, it is moved to the bottom, and then very shortly there after moved up 8 lines to account for the reserved area for the menu. Using https://github.com/click-contrib/click-repl this causes the screen to flicker anytime the screen is scrolled.

This PR leaves the vertical scroll unchanged if the cursor is already in the view-port.

@jonathanslenders
Copy link
Member

Hi @stephenrauch,

Thank you for this. I just tested it and it looks good!
Merged in: 192e8e6

@stephenrauch stephenrauch deleted the no-vert-scroll-if-cursor-on-screen branch August 22, 2016 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants