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

Long prompts interfere with display of readline search #2233

Closed
melvinw opened this issue Jan 17, 2025 · 1 comment
Closed

Long prompts interfere with display of readline search #2233

melvinw opened this issue Jan 17, 2025 · 1 comment
Assignees

Comments

@melvinw
Copy link
Collaborator

melvinw commented Jan 17, 2025

Mostly opening this so I can remember to fix this if I can't come up with a fix before I get distracted...

This is most easily demonstrated in this screencast: https://asciinema.org/a/BPyNDjxbRoJ0Kd7F3jSzFflRx

Basically, when PS1 is long, the buffer while doing a ctrl+r search looks wonky. This doesn't happen in bash.

You can reproduce by opening two shells. One with PS1='\u@\h:\w\$ ' and another with the default or something minimal like PS1='\$ '. Press ctrl+r in both and note that, in the first shell, some garbage text from the trailing portion of the prompt that doesn't overlap with (reverse-i-search)':` lingers until you end the search.

@melvinw melvinw self-assigned this Jan 17, 2025
@melvinw
Copy link
Collaborator Author

melvinw commented Jan 17, 2025

Oh nice. It looks like someone else opened a bug (#2081) for this back in September. I'll use that instead.

@melvinw melvinw closed this as completed Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant