Closed thorstenkampe closed 3 years ago
@thorstenkampe I'll see if I can reproduce this in other terminals. That said, this is going to be a bug in either ConEmu, PS-GuiCompletion or PowerTab as once rendered, there's nothing oh-my-posh can do that affects the visualisation. This is however an inverted ANSI sequence, and one of the tools is going to ruin the rendering when it draws that completion box.
I opened the issue here because the problem does not occur in my Starship prompt (although that might be coincedental).
@thorstenkampe confirmed to be a bug with the toolset rather than oh-my-posh. It even changes the colours on the screen meaning their rendering influences the drawn ANSI characters. The default Install-Module
progress bar also has this issue in Powershell meaning it could be something low level in the standard toolset. However, there's nothing I can do to resolve that, our string is drawn correctly and the tool(s) simply re-render that part and ruin it. So it's up to them to fix it.
This doesn't happen with every color and impacts background colours primarily. That's probably also why you don't see this on starship, when I use a prompt with only foreground colours, this doesn't happen.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Prerequisites
CONTRIBUTING
guideDescription
Prompt changes using tab completion with PS-GuiCompletion or PowerTab
Environment
Steps to Reproduce
Invoke tab completion with PS-GuiCompletion or PowerTab (for instance with
cd <tab>
move cursor down (or any other key)
PowerLine symbol inverts its colors
Expected behavior: Prompt should not change
Actual behavior: Prompt changes
Config: