Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

characters disappear for readline ctrl+r #459

Closed
xuefer opened this issue Dec 8, 2015 · 7 comments
Closed

characters disappear for readline ctrl+r #459

xuefer opened this issue Dec 8, 2015 · 7 comments

Comments

@xuefer
Copy link

@xuefer xuefer commented Dec 8, 2015

x
please note that my PS1 is 2 lines
the first / $ is where bug happens
what i do in 1st / $: ctrl+r (search), ec (got "echo $TERM", because i have it in histroy), enter ("echo $TERM" is gone)
what i do in 2nd / $: ctrl+r (search), ec (got "echo $TERM"), ctrl+c (so you see "^Ccho $TERM")
what i did in 4rd / $: same as the 1st
what i did in 5rd / $: same as the 2nd

the bug seems not reproduced after vim is run/quit. (by switching to/from alternative buffer?)

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Dec 8, 2015

Same behavior in mintty. Consider this is a bug of readline, report it in correct place.

@xuefer
Copy link
Author

@xuefer xuefer commented Dec 8, 2015

for 2 4 5 it's not bug it's just for compare,the 1st / $ is the bug where "echo $TERM" disappears

That's strange, as i can't reproduce it in mintty

TERM=xterm-256color. using latest everything as of now. What does it take to reproduce it in mintty. i've comment out everything in /etc/inputrc and ~/.inputrc

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Dec 8, 2015

Depends on $PWD and $PS1 I believe.
Anyway, 1 is has same problems on my PC in both ConEmu and mintty.

@xuefer
Copy link
Author

@xuefer xuefer commented Dec 8, 2015

bug can't reproduced after removing \n from PS1. can you please share your PS1 setting? i'd like to reproduce it in mintty so i can report it back to cygwin or readline

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Dec 8, 2015

Sorry, have played a lot with different profiles, and this one had incorrect PS1 (specials were not escaped properly).
Now I can reproduce the bug in ConEmu.

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Dec 9, 2015

151208

@xuefer
Copy link
Author

@xuefer xuefer commented Dec 9, 2015

Thanks, it was fixed

@xuefer xuefer closed this Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.