mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2025-04-15 15:15:42 +02:00
Remove 'repeat last command' function from BrotliCalc
This commit is contained in:
parent
d6a52042ec
commit
1a643a6d27
@ -50,12 +50,9 @@ namespace BrotliCalc{
|
||||
|
||||
Console.ForegroundColor = ConsoleColor.DarkGray;
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Type r/repeat to repeat the last command.");
|
||||
Console.WriteLine("Type q/quit to close the program.");
|
||||
Console.WriteLine();
|
||||
|
||||
string[] lastInput = null;
|
||||
|
||||
while(true){
|
||||
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||
Console.Write("> ");
|
||||
@ -71,11 +68,7 @@ namespace BrotliCalc{
|
||||
|
||||
string trigger = input[0];
|
||||
|
||||
if ((trigger == "r" || trigger == "repeat") && lastInput != null){
|
||||
input = lastInput;
|
||||
trigger = input[0];
|
||||
}
|
||||
else if (trigger == "q" || trigger == "quit"){
|
||||
if (trigger == "q" || trigger == "quit"){
|
||||
break;
|
||||
}
|
||||
|
||||
@ -102,8 +95,6 @@ namespace BrotliCalc{
|
||||
continue;
|
||||
}
|
||||
|
||||
lastInput = input;
|
||||
|
||||
try{
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user