summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-05-25 12:51:22 +0200
committerBram Moolenaar <Bram@vim.org>2011-05-25 12:51:22 +0200
commita660dc8f303548488f6138a04cb7a33a396d1b08 (patch)
tree0ed7aec58aed463bc33458c7b6b7b8e586b32d09
parent72952de23993ecb8d4223b3d0db6e8c5c42d56e0 (diff)
downloadvim-git-7.3.200.tar.gz
updated for version 7.3.200v7.3.200
Problem: CTRL-D doesn't complete :lang. Solution: Add the missing part of the change. (Dominique Pelle)
-rw-r--r--src/ex_docmd.c15
-rw-r--r--src/version.c2
2 files changed, 15 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 1598d893e..b9ec6c530 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3861,13 +3861,24 @@ set_one_cmd_context(xp, buff)
#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
&& (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE))
case CMD_language:
- if (*skiptowhite(arg) == NUL)
+ p = skiptowhite(arg);
+ if (*p == NUL)
{
xp->xp_context = EXPAND_LANGUAGE;
xp->xp_pattern = arg;
}
else
- xp->xp_context = EXPAND_NOTHING;
+ {
+ if ( STRNCMP(arg, "messages", p - arg) == 0
+ || STRNCMP(arg, "ctype", p - arg) == 0
+ || STRNCMP(arg, "time", p - arg) == 0)
+ {
+ xp->xp_context = EXPAND_LOCALES;
+ xp->xp_pattern = skipwhite(p);
+ }
+ else
+ xp->xp_context = EXPAND_NOTHING;
+ }
break;
#endif
#if defined(FEAT_PROFILE)
diff --git a/src/version.c b/src/version.c
index 0136d6117..14537c6f1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 200,
+/**/
199,
/**/
198,