putmsghistory() (trunk only)
[Third of three message history patches.]
Add another argument to putmsghistory() so that it can tell whether
it's processing multiple messages for restore (which should be treated as
being older than any current messages) or a single message to stuff into
history (which should be treated as the most recent message even though
it hasn't been displayed in the message window).
This commit is contained in:
+3
-2
@@ -704,13 +704,14 @@ boolean init;
|
||||
* Called with a null pointer to finish up.
|
||||
*/
|
||||
void
|
||||
tty_putmsghistory(msg)
|
||||
tty_putmsghistory(msg, restoring)
|
||||
const char *msg;
|
||||
boolean restoring;
|
||||
{
|
||||
static boolean initd = FALSE;
|
||||
int idx;
|
||||
|
||||
if (!initd) {
|
||||
if (restoring && !initd) {
|
||||
/* we're restoring history from the previous session, but new
|
||||
messages have already been issued this session ("Restoring...",
|
||||
for instance); collect current history (ie, those new messages),
|
||||
|
||||
Reference in New Issue
Block a user