Skip to content
Snippets Groups Projects
Commit e0931d6d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix issue when receiving node messages while using down-arrow at pause prompt

Hitting down-arrow key at a pause prompt normally displaye just one more line
of the display text/file, but if you received a node message/telegram/notice
after hitting down arrow, you'd get a screen full of text instead of just a
single (one more) line, as you wanted.

This looks to be because of the anti-recursive protection implemented in
pause() - when it calls nodesync() after the key press, that displays
node/user messages (if there are any) and if pause is called as a result
(e.g. because the line counter was already set to cause a pause after the
next line of output), it'd do nothing since that would be recursive. The fix
is to simply set the line counter as a result of the down-arrow key press
*after* the call to nodesync(), which might display multiple lines, but I
think that's fine.
parent e7cfae3e
No related branches found
No related tags found
No related merge requests found
Pipeline #7421 passed
......@@ -452,13 +452,13 @@ bool sbbs_t::pause(bool set_abort)
bool aborted = (ch==no_key() || ch==quit_key() || (sys_status & SS_ABORT));
if(set_abort && aborted)
sys_status|=SS_ABORT;
else if(ch==LF) // down arrow == display one more line
lncntr=rows-2;
if(text[Pause][0]!='@')
backspace(len);
getnodedat(cfg.node_num, &thisnode);
nodesync();
attr(tempattrs);
if(ch==LF) // down arrow == display one more line
lncntr=rows-2;
pause_inside = false;
return !aborted;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment