-
Notifications
You must be signed in to change notification settings - Fork 98
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
Dont erase the line at the end of PS1 #11
Conversation
I have included this change due to the issues you found with the history. However, not clearing at the end of the PS1 does cause issues with the background color bleeding beyond where it should as noted here; |
I've tested this further and I do not think the \K is causing the issues you are seeing. Can you confirm you experience this issue with a clean git pull and default config? |
Hummm , seem i can't reproduce right now the behavior i had with a clean env and need to investigate further to see what caused this comportment. I will try to reproduce it and will update this PR if i found something Sorry about that :/
|
A new option has been added to make erasing to end of line optional. You can now set; |
Dont erase the line at the end of PS1
Erasing the line with escape sequence K seems to prevent the reverse history to works correctly.
When we do a reverse history search with ctrl+r inside a shell and press "escape" to undo, the line is erase instead of the normal behavior who let the user edit the command found.
This PR correct this and I don't see weird side effect until now.
Normal:
Actual behavior: