You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain unprintable characters in the prompt aren't getting accounted for properly. I'll fix that for BEL, but it's difficult to make a fully comprehensive change that handles all possible unprintable characters for all of Unicode and for all fonts, so for now I'll only target certain well known characters like the BEL character, and maybe backspace (though that one gets weird with UTF8).
FWIW, git-bash has the same problem; this issue is inherited from bash and Readline. Bash/Readline documentation says it's the responsibility of the prompt author to add 001 (^A) and 002 (^B) characters before and after unprintable characters so that Readline knows which characters are unprintable.
However, I'll make Clink automatically handle the BEL (^G) character.
Importing from mridgers #453, originally posted by @SuCasa:
Here is the instruction to reproduce this bug:
set PROMPT=$P$G^G
(note:^G
= 1 character, type Ctrl+G)Tested on clink 0.4.8 and Windows 10 Creators Update.
And also on clink 1.1.23.
The text was updated successfully, but these errors were encountered: