fix multiline err on ctrl+c

This commit is contained in:
SinaKarvandi 2021-12-04 02:50:37 +03:30
parent 81a75fdebe
commit 353e991eb1

View file

@ -85,6 +85,11 @@ main(int argc, char * argv[])
string CurrentCommand = "";
//
// Clear multiline
//
Reset = true;
GetMultiLinecCommand:
string TempCommand = "";
@ -94,6 +99,7 @@ main(int argc, char * argv[])
if (cin.fail() || cin.eof())
{
cin.clear(); // reset cin state
printf("\n\n");
//