Closed AckslD closed 3 years ago
Hi, I'm not able to reproduce this. I'm guessing that it has something to do with your prompt. Can you reproduce with a simpler prompt?
Hi @ericfreese thanks for you suggestion. I will play around with some simpler prompts to see if I can find out what's going on.
@ericfreese I think I narrowed it down to how I make the prompt different depending on whether the last command succeeded or not. I'm able to reproduce the issue with this minimal prompt:
PROMPT='%{%(?.v.x)%}: '
Any idea if this is an issue with autosuggestions or with the way I'm doing it?
I'm not an expert on prompt expansion, but it looks like you might be using %{...%}
incorrectly.
http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Visual-effects
It says
The string within the braces should not change the cursor position.
But your string within the braces does change the cursor position by outputting either v
or x
.
Can you remove the use of that construct and just do this?
PROMPT='%(?.v.x): '
Thanks a lot @ericfreese! This solved it for me :) I wasn't really sure what exactly %{...%}
was doing since I just edited the existing muse theme. Anyway I replaced most of them with %F..%f
around coloured parts and the issue is gone.
Describe the bug
When a autosuggestion is longer than the terminal width and the current text stop matching the long suggestion, one character is no longer displayed in the terminal. I think the easiest is to explain with the screencast below:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No missing characters.
Screenshots
Note, that the second command works, it's just that the " is not displayed when typing the command.
Desktop
Additional context
I'm using the following plugins.