]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.650 v7.3.650
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Sep 2012 13:03:30 +0000 (15:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Sep 2012 13:03:30 +0000 (15:03 +0200)
Problem:    Completion after ":help \{-" gives an error message and messes up
            the command line.
Solution:   Cancel the tag search if the pattern can't be compiled. (Yasuhiro
            Matsumoto)

src/tag.c
src/version.c

index 08abd41758b9b174ef9e0633b2e2618872ffda47..4f2426b90c15806859b367038cb502fd5a25a1e9 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1443,6 +1443,8 @@ find_tags(pat, num_matches, matchesp, flags, mincount, buf_ffname)
        orgpat.len = p_tl;
 
     prepare_pats(&orgpat, has_re);
+    if (has_re && orgpat.regmatch.regprog == NULL)
+       goto findtag_end;
 
 #ifdef FEAT_TAG_BINS
     /* This is only to avoid a compiler warning for using search_info
index 4b4890c7e0d134a2cab1171c9935bc9184d9563e..a2ca2386e8c3d87874a9da73fa2edcfe3b85bd4f 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    650,
 /**/
     649,
 /**/