comparison src/tag.c @ 3784:a638ae0f1b0c v7.3.650

updated for version 7.3.650 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)
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Sep 2012 15:03:30 +0200
parents 320cc46d0eb0
children 8fdadfccd184
comparison
equal deleted inserted replaced
3783:5fb413417067 3784:a638ae0f1b0c
1441 #endif 1441 #endif
1442 if (p_tl != 0 && orgpat.len > p_tl) /* adjust for 'taglength' */ 1442 if (p_tl != 0 && orgpat.len > p_tl) /* adjust for 'taglength' */
1443 orgpat.len = p_tl; 1443 orgpat.len = p_tl;
1444 1444
1445 prepare_pats(&orgpat, has_re); 1445 prepare_pats(&orgpat, has_re);
1446 if (has_re && orgpat.regmatch.regprog == NULL)
1447 goto findtag_end;
1446 1448
1447 #ifdef FEAT_TAG_BINS 1449 #ifdef FEAT_TAG_BINS
1448 /* This is only to avoid a compiler warning for using search_info 1450 /* This is only to avoid a compiler warning for using search_info
1449 * uninitialised. */ 1451 * uninitialised. */
1450 vim_memset(&search_info, 0, (size_t)1); 1452 vim_memset(&search_info, 0, (size_t)1);