refactor(fold): style #19175

* refactor(fold): update comment formatting
* refactor(fold): use post-increment/decrement
* refactor(fold): reduce scope of local variables
* refactor(fold): use booleans
This commit is contained in:
Lewis Russell
2022-07-02 12:29:27 +01:00
committed by GitHub
parent 662681694b
commit ed429c00d7
4 changed files with 232 additions and 312 deletions

View File

@@ -652,7 +652,7 @@ static bool emsg_multiline(const char *s, bool multiline)
// interrupt message).
if (cause_errthrow(s, severe, &ignore)) {
if (!ignore) {
did_emsg++;
did_emsg = true;
}
return true;
}
@@ -717,7 +717,7 @@ static bool emsg_multiline(const char *s, bool multiline)
} else {
flush_buffers(FLUSH_MINIMAL); // flush internal buffers
}
did_emsg++; // flag for DoOneCmd()
did_emsg = true; // flag for DoOneCmd()
}
emsg_on_display = true; // remember there is an error message