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; std::string line;
bool another_line = true; bool another_line = true;
do { 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() != '\\') { if (line.empty() || line.back() != '\\') {
another_line = false; another_line = false;
} else { } else {