jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.105

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