]> granicus.if.org Git - vim/commitdiff
patch 8.2.0636: :messages does not show the maintainer when $LANG is unset v8.2.0636
authorBram Moolenaar <Bram@vim.org>
Sat, 25 Apr 2020 13:45:37 +0000 (15:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 25 Apr 2020 13:45:37 +0000 (15:45 +0200)
Problem:    :messages does not show the maintainer when $LANG is unset.
Solution:   Call get_mess_lang() if available. (closes #5978)

src/message.c
src/version.c

index fbddfadcbb5bad1390d11c378add6822d92ab73e..04dc4014f3a9fd88b0070fb42a7fbbab8894a925 100644 (file)
@@ -1035,7 +1035,11 @@ ex_messages(exarg_T *eap)
 
     if (p == first_msg_hist)
     {
+#ifdef FEAT_MULTI_LANG
+       s = get_mess_lang();
+#else
        s = mch_getenv((char_u *)"LANG");
+#endif
        if (s != NULL && *s != NUL)
            // The next comment is extracted by xgettext and put in po file for
            // translators to read.
index 2fcabeba4f1757a1633d7115ca9aeaf2e1ef04ce..7c753e22ab5c9f2e1ee92cca1684f7c47c0b6a4f 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    636,
 /**/
     635,
 /**/