2

When I use reverse history search, then it "eats" a part of my prompt. Sometimes when I type a long command which spans to multi lines, my prompt is also lost.

Have anyone experience this situation? It is very annoying. I have attached the screenshot.

Thanks.

  • 1
    I don't see a screenshot. – bahamat Jul 27 '12 at 23:30
  • 3
    Please don't post a screenshot, but a copy-paste of a few lines from the terminal, using code formatting (press Ctrl+K or use the code button). Also post the content of your .zshrc and the output of echo $TERM. – Gilles Jul 27 '12 at 23:32
5

This is usually due to non-space using items actually counting as space (e.g. formatting escape sequences like color etc.). These should be wrapped in %{ ... %} pairs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.