]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-199 v7.1.199
authorBram Moolenaar <Bram@vim.org>
Fri, 4 Jan 2008 14:17:47 +0000 (14:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 4 Jan 2008 14:17:47 +0000 (14:17 +0000)
runtime/doc/cmdline.txt
src/ex_getln.c
src/version.c

index 69a711d1f5e6eccfc94bf791aae0d7694591ce92..fd18e6720e62ad1fdc2f012af8d5b6d6583e43f3 100644 (file)
@@ -1,4 +1,4 @@
-*cmdline.txt*   For Vim version 7.1.  Last change: 2006 Jul 18
+*cmdline.txt*   For Vim version 7.1.  Last change: 2008 Jan 04
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -316,7 +316,7 @@ The same could be done by typing <S-Up> a number of times until the desired
 command-line is shown.  (Note: the shifted arrow keys do not work on all
 terminals)
 
-                                                       *his* *:history*
+                                                       *:his* *:history*
 :his[tory]     Print the history of last entered commands.
                {not in Vi}
                {not available when compiled without the |+cmdline_hist|
@@ -447,6 +447,11 @@ extensions matching the 'suffixes' option.
 
 To completely ignore files with some extension use 'wildignore'.
 
+To match only files that end at the end of the typed text append a "$".  For
+example, to match only files that end in ".c": >
+       :e *.c$
+This will not match a file ending in ".cpp".  Without the "$" it does match.
+
 The old value of an option can be obtained by hitting 'wildchar' just after
 the '='.  For example, typing 'wildchar' after ":set dir=" will insert the
 current value of 'dir'.  This overrules file name completion for the options
index 7d543f2493f374b3c99e11f4738e68440bd21811..547f1a17bea2b16129610324baad7eca5ad71695 100644 (file)
@@ -4078,6 +4078,7 @@ addstar(fname, len, context)
             * ~ would be at the start of the file name, but not the tail.
             * $ could be anywhere in the tail.
             * ` could be anywhere in the file name.
+            * When the name ends in '$' don't add a star, remove the '$'.
             */
            tail = gettail(retval);
            if ((*retval != '~' || tail != retval)
@@ -4085,6 +4086,8 @@ addstar(fname, len, context)
                    && vim_strchr(tail, '$') == NULL
                    && vim_strchr(retval, '`') == NULL)
                retval[len++] = '*';
+           else if (len > 0 && retval[len - 1] == '$')
+               --len;
            retval[len] = NUL;
        }
     }
index 7f2739b234fc7362586b61e9902f7ea92f7a7d78..42138ca9b057db3d7863f083676261bb277732ff 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    199,
 /**/
     198,
 /**/