diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-14 19:44:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-14 19:44:36 +0200 |
commit | bea1ede1c59a11ca5bf9d91cd30b7b2937b9fb41 (patch) | |
tree | 6b366c0261b58234d79d89645e3c447ca7c23319 /src/message.c | |
parent | 5d91646599a7b74310845e30a2a52ff197dc0ed7 (diff) | |
download | vim-git-bea1ede1c59a11ca5bf9d91cd30b7b2937b9fb41.tar.gz |
patch 7.4.1739v7.4.1739
Problem: Messages test fails on MS-Windows.
Solution: Adjust the asserts. Skip the "messages maintainer" line if not
showing all messages.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/message.c b/src/message.c index 8d34c1279..d3572eb42 100644 --- a/src/message.c +++ b/src/message.c @@ -789,14 +789,7 @@ ex_messages(exarg_T *eap) msg_hist_off = TRUE; - s = mch_getenv((char_u *)"LANG"); - if (s != NULL && *s != NUL) - msg_attr((char_u *) - _("Messages maintainer: Bram Moolenaar <Bram@vim.org>"), - hl_attr(HLF_T)); - p = first_msg_hist; - if (eap->addr_count != 0) { /* Count total messages */ @@ -810,6 +803,15 @@ ex_messages(exarg_T *eap) p = p->next, c--); } + if (p == first_msg_hist) + { + s = mch_getenv((char_u *)"LANG"); + if (s != NULL && *s != NUL) + msg_attr((char_u *) + _("Messages maintainer: Bram Moolenaar <Bram@vim.org>"), + hl_attr(HLF_T)); + } + /* Display what was not skipped. */ for (; p != NULL && !got_int; p = p->next) if (p->msg != NULL) |