lkundrak / rpms / vim

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