Merge branch 'master' into concedo

This commit is contained in:
Concedo 2023-03-26 14:52:14 +08:00
commit 33b5d2c376

View file

@ -450,7 +450,10 @@ int main(int argc, char ** argv) {
std::string line;
bool another_line = true;
do {
std::getline(std::cin, line);
if (!std::getline(std::cin, line)) {
// input stream is bad or EOF received
return 0;
}
if (line.empty() || line.back() != '\\') {
another_line = false;
} else {