mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Don't erase the prompt text when backspacing on a secret prompt with a null mask.
This commit is contained in:

committed by
Patrik Svensson

parent
72704529c5
commit
bf3b91a535
@ -53,7 +53,11 @@ public static partial class AnsiConsoleExtensions
|
||||
if (text.Length > 0)
|
||||
{
|
||||
text = text.Substring(0, text.Length - 1);
|
||||
console.Write("\b \b");
|
||||
|
||||
if (mask != null)
|
||||
{
|
||||
console.Write("\b \b");
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user