Correction d'un oubli
Pour l'entrée abrégée 'q', rajout de la méthode ltrim pour la MàJ de prompt.
This commit is contained in:
parent
a357bbd1f8
commit
37210743bc
@ -349,8 +349,9 @@ void interact(int width)
|
|||||||
case 2: puts("Cannot move: already went there"); break;
|
case 2: puts("Cannot move: already went there"); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MàJ de prompt
|
||||||
strcpy(buffer, prompt+strlen("d"));
|
strcpy(buffer, prompt+strlen("d"));
|
||||||
|
ltrim(prompt, buffer);
|
||||||
}
|
}
|
||||||
else if STR_STARTS_WITH(prompt, "z")
|
else if STR_STARTS_WITH(prompt, "z")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user