diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-25 15:45:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-25 15:45:37 +0200 |
commit | 41f6918bf4545de6a80c96d8c80f5f509f9a647f (patch) | |
tree | df5b8940e5f0a01853eadf2f0528978210f50384 /src/message.c | |
parent | e93c968f520ee8d6bc29ccc6e18055ac65e832b3 (diff) | |
download | vim-git-41f6918bf4545de6a80c96d8c80f5f509f9a647f.tar.gz |
patch 8.2.0636: :messages does not show the maintainer when $LANG is unsetv8.2.0636
Problem: :messages does not show the maintainer when $LANG is unset.
Solution: Call get_mess_lang() if available. (closes #5978)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index fbddfadcb..04dc4014f 100644 --- a/src/message.c +++ b/src/message.c @@ -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. |