Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Character duplicate when press tab #364

Closed
SubtleMuffin opened this issue Dec 18, 2016 · 9 comments
Closed

Character duplicate when press tab #364

SubtleMuffin opened this issue Dec 18, 2016 · 9 comments

Comments

@SubtleMuffin
Copy link

When I press tab, the first character in current command line will duplicate, and will not disappear till I press . I am using iTerm, and please tell me if you want any further detailed configuration.

@SubtleMuffin
Copy link
Author

screen shot 2016-12-18 at 15 45 59

@dritter
Copy link
Member

dritter commented Dec 18, 2016

Seems like the calculation of columns is not right somehow. Before we go in detail with your configuration, could you try to disable the prompt "mark" in your iTerm settings (should be under Profiles/Terminal/Shell Integration/Show mark indicators), and see if that helps?

@SubtleMuffin
Copy link
Author

Hi dritter, it doesn't work....

@dritter
Copy link
Member

dritter commented Dec 18, 2016

Too bad. Could you post your ~/.zshrc?

@SubtleMuffin
Copy link
Author

Hi, please check http://paste.ubuntu.com/23650204/

@dritter
Copy link
Member

dritter commented Dec 18, 2016

Okay. Could you comment the following line ZLE_RPROMPT_INDENT=0. This always causes such errors. ;)

@dritter
Copy link
Member

dritter commented Dec 18, 2016

Btw. This will cause a gap at the right border. The common "fix" for that is setting the right indent to zero (as you did), but this has some side effects (like the one you observed). Unfortunately there is no good fix around for that. At least not that I know besides calculating the columns manually (which is a bigger issue)..

@SubtleMuffin
Copy link
Author

Hi dritter, thanks so much for your advice. Now it is normal, thanks again.

@bhilburn
Copy link
Member

Nice work, @dritter! Happy you are up and running, @zhengnanlee!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants