diff src/message.c @ 8905:9200836eee15 v7.4.1739

commit https://github.com/vim/vim/commit/bea1ede1c59a11ca5bf9d91cd30b7b2937b9fb41 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 14 19:44:36 2016 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Apr 2016 19:45:04 +0200
parents b4dad96ade29
children 70d3337ff173
line wrap: on
line diff
--- 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)