mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-13 03:13:08 +03:00
Merge branch '1718_suse_b_letter_in_prompt'
* 1718_suse_b_letter_in_prompt: Ticket #1718: OpenSuse: Showing 'B' artefact in command line of user 'root'
This commit is contained in:
commit
143f078738
@ -780,7 +780,8 @@ strip_ctrl_codes (char *s)
|
||||
for (w = s, r = s; *r; ) {
|
||||
if (*r == ESC_CHAR) {
|
||||
/* Skip the control sequence's arguments */ ;
|
||||
if (*(++r) == '[') {
|
||||
/* '(' need to avoid strange 'B' letter in *Suse (if mc runs under root user) */
|
||||
if (*(++r) == '[' || *r == '(') {
|
||||
/* strchr() matches trailing binary 0 */
|
||||
while (*(++r) && strchr ("0123456789;?", *r));
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user