Mercurial > vim
changeset 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 | 5fb413417067 |
children | e00bbaccf4ab |
files | src/tag.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tag.c +++ b/src/tag.c @@ -1443,6 +1443,8 @@ find_tags(pat, num_matches, matchesp, fl 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