-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The shell prompt get offsets every time an item was accepted #202
Comments
I don't really think there is a fix for this. Every time you hit See the below function for the redrawn prompt. Lines 122 to 135 in 0364b14
|
Thanks for your explain and so we have to wait the official team of psreadline to fix :(
|
Well maybe. You also have a two lined prompt which is different than mine. Are you using Version |
I'm not sure if this made a difference so I tested again with command (The Hyper Terminal gif is too big somehow, so I didn't upload it but it's almost the same result
Yes, I am using
I am a Chinese and '空格' means 'Space' key, that's probably not the problem
Version |
Looks like our version are matching well except I am Win 10 22H2 running single line That gif looks like it is working like it should. No? Even your original gif didn't appear all that off. The problem is when your prompt gets to the bottom and has to "jump"? |
Exactly, it won't work as expected when the prompt stays at the bottom of terminal. |
Ah ok, so you don't want all that white space generating as you go in and out of Hmm. I wonder if this module can hook into some class in |
Sorry but I do know little about PowerShell and I am not a developer :( Just let me know if you need help or else. |
Any updates on this? I'm experiencing this on macOS pwsh if I can help debug |
I don't even remember what the issue really was. I was trying to read through and I can't tell if OP wants the prompt line to stay in place when |
I've been following this issue for a while, since I have a very similar bug which has led me to removing the recommended tab expansion key handler Subsequent calls to This also does not appear to be an issue with the Ctrl-r binding for selecting command history. PSVersion: I can also confirm that I can reproduce this in both my personal config and when using
Here is the comparison between PSFzf and the Zsh plugin Aloxaf/fzf-tab:
|
Hmm. I wonder if using straight |
I haven't ever noticed this issue being present with direct calls to With my testing, It seems the issue occurs more accurately when the prompt is repositioned to accommodate the
I agree - ideally, the prompt should inherit the new position, rather than returning to its previous one. But if that information is not exposed, then I'm even more unsure as to how this can be solved. |
It's happening months ago when I started to use PSFzf, I don't know what's going on behind the scene and it just didn't behave like expected, because when the prompt stays at the bottom of terminal, it got offset each time an item is accepted, looks weird.
I didn't see a related issue here. (If there was a disscussion, please let me know : )
The text was updated successfully, but these errors were encountered: