]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.200 v7.3.200
authorBram Moolenaar <Bram@vim.org>
Wed, 25 May 2011 10:51:22 +0000 (12:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 May 2011 10:51:22 +0000 (12:51 +0200)
Problem:    CTRL-D doesn't complete :lang.
Solution:   Add the missing part of the change. (Dominique Pelle)

src/ex_docmd.c
src/version.c

index 1598d893e32d5fe535324968b2283e8d5571ff5c..b9ec6c53062468cffb69c57e0ff57e2116f3d659 100644 (file)
@@ -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)
index 0136d61173f66e26328ed16cded69383e6fa46e6..14537c6f144fae0e2c7718c7496ee9008f42409f 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    200,
 /**/
     199,
 /**/