Mercurial > vim
comparison src/message.c @ 625:81fe2ccc1207 v7.0179
updated for version 7.0179
author | vimboss |
---|---|
date | Thu, 12 Jan 2006 23:22:24 +0000 |
parents | 7fe13e0f5dce |
children | 732c7ae5743e |
comparison
equal
deleted
inserted
replaced
624:91e7d4a7b3b0 | 625:81fe2ccc1207 |
---|---|
750 | 750 |
751 if (msg_hist_off || msg_silent != 0) | 751 if (msg_hist_off || msg_silent != 0) |
752 return; | 752 return; |
753 | 753 |
754 /* Don't let the message history get too big */ | 754 /* Don't let the message history get too big */ |
755 while (msg_hist_len > 20) | 755 while (msg_hist_len > MAX_MSG_HIST_LEN) |
756 (void)delete_first_msg(); | 756 (void)delete_first_msg(); |
757 | 757 |
758 /* allocate an entry and add the message at the end of the history */ | 758 /* allocate an entry and add the message at the end of the history */ |
759 p = (struct msg_hist *)alloc((int)sizeof(struct msg_hist)); | 759 p = (struct msg_hist *)alloc((int)sizeof(struct msg_hist)); |
760 if (p != NULL) | 760 if (p != NULL) |