I using zsh. However, the command search history feature(ctrl-r) is giving me issues. Specifically, the text gets garbled. Everything executes correctly regardless, but UX it's a bad experience.
Using the same cloud, this issue exists in my client terminals... both in linux system with urxvt terminal and also in wsl terminal.
How can I fix it to where the text does not get garbled? The example below shows in red circles the text that is messed up and in green what it should look like.
EDIT: here is my PROMPT
one@work ~/github/sp6-client
% echo $PROMPT
%K{blue}%n@%m%k %B%F{green}%(4~|...|)%3~%F{white}
%# %b
UPDATE: Options list
one@work ~/github/sp6-client
% setopt
alwaystoend
autocd
nobeep
correct
extendedglob
interactive
kshglob
login
monitor
printeightbit
shinstdin
zle

zshhad a bug looking like that when theHIST_REDUCE_BLANKSoption was on. What version ofzshare you using. Do you haveHIST_REDUCE_BLANKSenabled? https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1334858 – Stéphane Chazelas Jun 05 '18 at 16:51HIST_REDUCE_BLANKSdoes not appear to be enabled. Also, this is a newer ver 5.1.1. I updated my post with the options enabled – dman Jun 05 '18 at 23:23infocmp -xin thaturxvt? Is it possible that your prompt contains hidden character?print -r -- $PS1 | LC_ALL=C sed -n l– Stéphane Chazelas Jun 10 '18 at 07:35env -u PS1 zsh -f? Or withexport PS1; zsh -f? I can't reproduce here on Linux Mint 18 with that same version ofzshon theurxvtfrom therxvt-unicode-256colorpackage (withTERM=rxvt-unicode-256color) – Stéphane Chazelas Jun 10 '18 at 07:40