2a642a0 which fixes #503 breaks the ability to include escape sequences in prompts.
Steps to reproduce:
Run echo hello | less -R -Ps$(printf '\e[41mred\e[m')
Expected result:
Prompt should be "red", colored red.
Actual result:
Prompt is "ESC[41mredESC[m".
2a642a0 which fixes #503 breaks the ability to include escape sequences in prompts.
Steps to reproduce:
Run
echo hello | less -R -Ps$(printf '\e[41mred\e[m')Expected result:
Prompt should be "red", colored red.
Actual result:
Prompt is "
ESC[41mredESC[m".