Merge branch 'master' into concedo

This commit is contained in:
Concedo
2023-03-19 00:07:32 +08:00
3 changed files with 58 additions and 3 deletions
+1 -1
View File
@@ -1015,7 +1015,7 @@ int main(int argc, char ** argv) {
if(params.use_color) printf(ANSI_BOLD ANSI_COLOR_GREEN);
if (scanf("%255[^\n]%n%*c", buf, &n_read) <= 0) {
// presumable empty line, consume the newline
scanf("%*c");
std::ignore = scanf("%*c");
n_read=0;
}
if(params.use_color) printf(ANSI_COLOR_RESET);