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