Closed 0x0OZ closed 1 week ago
Check that you're using a UTF-8 locale, see https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#i-see-duplicate-typed-characters-after-i-complete-a-command.
Check that you're using a UTF-8 locale, see https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#i-see-duplicate-typed-characters-after-i-complete-a-command.
Like this? That's what I currently have
I have similar kind of issue: I have tried to change the locale but didnt worked.
It seems this issue is specific to awesomepanda
theme
It gone when switched to different theme
@Harshchauhan64 If you change the theme to something else I assume it should be fixed @mcornella I think this theme is part of this repo, can you test again now but with this specific theme?
I have changed to powerlevel10k but the issue still persist. I was previously on default theme (robyrussell) In the img the echo cmd is repeated again and my locale are all set correctly. Honestly I don't know what is making to re prompt the cmd and the issue is not there when running tmux session.
@0x0OZ make sure that the locale used is exactly as written in the output of locale -a
.
@Harshchauhan64 your issue is different. See the resolution of #12332.
@0x0OZ OK no, this is caused by commit https://github.com/ohmyzsh/ohmyzsh/commit/80c114cb3a64044ea50b623f96a35bc022db5e8d from #5982.
Those added markers makes zsh not know how many characters are inside.
@carlosala can you check this out?
Great, Glad to hear that the root cause is found
Can you try #12651 to see if it works for you? You can do that with omz pr test 12651
. If it doesn't, make sure that the locale
set uses the exact UTF-8 one from locale -a
.
omz pr test 12651
That does fix it! Thank you :)
Describe the bug
Text can't truly explain the issue, Now this is normal command history preview when using zsh, now if I try to keep tying and for example type localhost, the interpreter will be malformed, and even that I added space ( and didn't remove it) it will be removed in the screen This look so wrong but it actually correct in the terminal and will be a successful command
It's not terminal issue but rather it's zsh or related to the theme/plugins because I tested it with windows terminal through (ssh)
Steps to reproduce
Expected behavior
Typed text shouldn't be malformed
Screenshots and recordings
No response
OS / Linux distribution
Linux kali 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux
Zsh version
5.9
Terminal emulator
xfce4-terminal, and windows terminal
If using WSL on Windows, which version of WSL
None
Additional context
My plugins: And ZSH_THEME="awesomepanda"