Suggestions are incorrect in Windows Terminal after resize #1707
Labels
os:windows
Issues related to Windows
terminal:WindowsTerminal
Issues related to Windows Terminal
type:bug
Something isn't working
Sanity checks
fig doctor
in the affected terminal sessionfig restart
and tested again (tell us if that fixed it)Issue Details
Description:
In Windows Terminal, resizing sometimes causes fig to offer incorrect suggestions or no suggestions at all. In particular, if a user has already typed some text in the terminal like
cd
and then resizes the window in a particular way, Fig's internal representation of the terminal will mark all of the text as prompt, meaning that suggestions will start from the end of the text. Typingls
will behave as an empty buffer and provide no suggestions while typingls
with 3 spaces at the start (for the length ofcd
) will provide correct suggestions.This is a direct consequence of our workaround for microsoft/terminal#8698 (or the more specific duplicate microsoft/terminal#11220) which attempts to delay OSCs for prompt end. On the bright side it looks like there is activity on this ticket in Windows Terminal and it may be fixed soon.
Fortunately, this issue with suggestions will also go away at the next prompt. This is a low priority known-bug, but if you are affected please upvote or comment, we can increase priority if this is encountered sufficiently often
The text was updated successfully, but these errors were encountered: