Commit 4dfdb036 authored by rswindell's avatar rswindell
Browse files

Fix line-at-a-time mode printfile() operation with regards to attributes

maintained between lines, reported by Immortal@IDOMAIN:
Use P_SAVEATR to retain the new attributes after each call to putmsg() in
printfile() line-at-a-time mode. We are no setting the initial attribute to
LIGHTGRAY or restoring the original attribute at the end (like a call to
putmsg() withou the P_SAVEATR would) - so we may need to add that later
for line-at-a-time mode, as well.
parent 142521ab
......@@ -132,7 +132,7 @@ bool sbbs_t::printfile(const char* fname, long mode, long org_cols)
if((mode&P_UTF8) && !term_supports(UTF8))
putmsg(buf, mode, org_cols);
putmsg(buf, mode|P_SAVEATR, org_cols);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment