-
Notifications
You must be signed in to change notification settings - Fork 370
Description
Bug reports
Expected Behavior
The prompt to allocate additional space when at the end of the consoles buffer for the autocomplete box.
Current Behavior and Steps to Reproduce
When reaching the end of a console windows buffer, if the autocomplete feature is enabled the buffer is not scrolled up to allow for space for the autocomplete suggestions. The result is that while the prompt is rendered at the bottom of the window, the actual cursor position is at the top of where the autocomplete box would have been rendered. For some reason only the bottom line of the autocomplete box is rendered.
In the screenshot below you can see the prompt at the bottom of the window with the cursor out of place a few lines above.

As soon as I start typing part of the previous output is erased and the prompt is re-rendered correctly.

Note that this only happens when the prompt is at the bottom of the consoles buffer not just the console window. ie. When the scroll bar on the console is all the way to the bottom. When there is still empty buffer space (console window scroll bar is not at the bottom) the previous output scrolls up as expected and the autocomplete box is given enough room to render.
Context
- Operating System: Windows 10 x64 Build 16299
- Terminal Emulator: Windows Command Prompt, Powershell
- tag of go-prompt or commit revision: master