No need to check player->aborted(), checking value of uprmptrd()
suffices.
pr("undo last line with ~u, print with ~p, abort with ~q, end with ^D or .\n");
bp = buf;
*bp = 0;
pr("undo last line with ~u, print with ~p, abort with ~q, end with ^D or .\n");
bp = buf;
*bp = 0;
- while (!player->aborted) {
sprintf(left, "%4d left: ", (int)(buf + MAXTELSIZE - bp));
if (uprmptrd(left, buffer, sizeof(buffer) - 2) <= 0)
return -1;
sprintf(left, "%4d left: ", (int)(buf + MAXTELSIZE - bp));
if (uprmptrd(left, buffer, sizeof(buffer) - 2) <= 0)
return -1;
- if (player->aborted)
- return -1;