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

Initial part of manually colored prompt is colored incorrectly #516

Open
gwsw opened this issue May 20, 2024 · 1 comment
Open

Initial part of manually colored prompt is colored incorrectly #516

gwsw opened this issue May 20, 2024 · 1 comment

Comments

@gwsw
Copy link
Owner

gwsw commented May 20, 2024

Steps to reproduce:
Run echo hello | ./less --use-color -R -Ps$(printf 'aa\e[41mbb\e[mcc')

Expected result:
Prompt should be "aabbcc" with the "aa" and "cc" uncolored, and the "bb" colored red.

Actual result:
"aa" is colored with the default prompt color instead of being uncolored.

Tested on less-643.

gwsw added a commit that referenced this issue Jun 21, 2024
@gwsw
Copy link
Owner Author

gwsw commented Jun 24, 2024

Fixed in c33b98e.

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

No branches or pull requests

1 participant