Closed sim590 closed 1 year ago
Duplicate
@JanDeDobbeleer : I'm sorry, I couldn't respond before you close. Should I assume that the bug was in oh-my-posh after all and that it is now fixed on the latest release?
@sim590 no, this is a bug in the FZF or PSReadLine implementation. Not oh-my-posh.
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.
Code of Conduct
What happened?
When interrupting FZF's "PSReadlineChordReverseHistory" functionality (CTRL-R mapping), extra space can sometimes (easy to reproduce) add before the prompt just like on the following screen capture (theme here is
amro
):You can see here that the space highlighted in red shouldn't be there as normal prompt should look like this:
Notice how the space goes away once you call back
pwsh.exe
.Here is a screen shot of a call to the FZF PSReadlineChordReverseHistory functionality:
Notice that I used another such theme where the prompt is not on the same line as the extra info, but on its own line. While FZF is running here, we can hit
ctrl-c
to interrupt. If you do that very rapidly (ctrl-r
, thenctrl-c
and repeat), then at some point, you end up with this:Theme
Any theme that has its prompt on its own line seems to make this.
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output