|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.105
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.105
|
|
|
22c937 |
Problem: Completing a tag pattern may give an error for invalid pattern.
|
|
|
22c937 |
Solution: Suppress the error, just return no matches.
|
|
|
22c937 |
Files: src/tag.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.104/src/tag.c 2013-11-08 04:30:06.000000000 +0100
|
|
|
22c937 |
--- src/tag.c 2013-11-28 14:27:38.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 1326,1331 ****
|
|
|
22c937 |
--- 1326,1332 ----
|
|
|
22c937 |
int match_no_ic = 0;/* matches with rm_ic == FALSE */
|
|
|
22c937 |
int match_re; /* match with regexp */
|
|
|
22c937 |
int matchoff = 0;
|
|
|
22c937 |
+ int save_emsg_off;
|
|
|
22c937 |
|
|
|
22c937 |
#ifdef FEAT_EMACS_TAGS
|
|
|
22c937 |
/*
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 1442,1448 ****
|
|
|
22c937 |
--- 1443,1452 ----
|
|
|
22c937 |
if (p_tl != 0 && orgpat.len > p_tl) /* adjust for 'taglength' */
|
|
|
22c937 |
orgpat.len = p_tl;
|
|
|
22c937 |
|
|
|
22c937 |
+ save_emsg_off = emsg_off;
|
|
|
22c937 |
+ emsg_off = TRUE; /* don't want error for invalid RE here */
|
|
|
22c937 |
prepare_pats(&orgpat, has_re);
|
|
|
22c937 |
+ emsg_off = save_emsg_off;
|
|
|
22c937 |
if (has_re && orgpat.regmatch.regprog == NULL)
|
|
|
22c937 |
goto findtag_end;
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.104/src/version.c 2013-11-28 14:20:11.000000000 +0100
|
|
|
22c937 |
--- src/version.c 2013-11-28 14:30:35.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 105,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
The goal of science is to build better mousetraps.
|
|
|
22c937 |
The goal of nature is to build better mice.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|