summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/message.c b/src/message.c
index 8d34c12795..d3572eb420 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)