home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.105 < prev    next >
Encoding:
Internet Message Format  |  2013-11-27  |  1.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.105
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.105
  11. Problem:    Completing a tag pattern may give an error for invalid pattern.
  12. Solution:   Suppress the error, just return no matches.
  13. Files:        src/tag.c
  14.  
  15.  
  16. *** ../vim-7.4.104/src/tag.c    2013-11-08 04:30:06.000000000 +0100
  17. --- src/tag.c    2013-11-28 14:27:38.000000000 +0100
  18. ***************
  19. *** 1326,1331 ****
  20. --- 1326,1332 ----
  21.       int        match_no_ic = 0;/* matches with rm_ic == FALSE */
  22.       int        match_re;    /* match with regexp */
  23.       int        matchoff = 0;
  24. +     int        save_emsg_off;
  25.   
  26.   #ifdef FEAT_EMACS_TAGS
  27.       /*
  28. ***************
  29. *** 1442,1448 ****
  30. --- 1443,1452 ----
  31.       if (p_tl != 0 && orgpat.len > p_tl)        /* adjust for 'taglength' */
  32.       orgpat.len = p_tl;
  33.   
  34. +     save_emsg_off = emsg_off;
  35. +     emsg_off = TRUE;  /* don't want error for invalid RE here */
  36.       prepare_pats(&orgpat, has_re);
  37. +     emsg_off = save_emsg_off;
  38.       if (has_re && orgpat.regmatch.regprog == NULL)
  39.       goto findtag_end;
  40.   
  41. *** ../vim-7.4.104/src/version.c    2013-11-28 14:20:11.000000000 +0100
  42. --- src/version.c    2013-11-28 14:30:35.000000000 +0100
  43. ***************
  44. *** 740,741 ****
  45. --- 740,743 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     105,
  49.   /**/
  50.  
  51. -- 
  52. The goal of science is to build better mousetraps.
  53. The goal of nature is to build better mice.
  54.  
  55.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  56. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  57. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  58.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  59.