mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.1739
Problem: Messages test fails on MS-Windows. Solution: Adjust the asserts. Skip the "messages maintainer" line if not showing all messages.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user