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.3 / 7.3.829 < prev    next >
Encoding:
Internet Message Format  |  2013-02-19  |  2.6 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.829
  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.3.829
  11. Problem:    When compiled with the +rightleft feature 'showmatch' also shows a
  12.         match for the opening paren.  When 'revins' is set the screen may
  13.         scroll.
  14. Solution:   Only check the opening paren when the +rightleft feature was
  15.         enabled.  Do not show a match that is not visible. (partly by
  16.         Christian Brabandt)
  17. Files:        src/search.c
  18.  
  19.  
  20. *** ../vim-7.3.828/src/search.c    2013-01-23 16:43:07.000000000 +0100
  21. --- src/search.c    2013-02-20 18:33:33.000000000 +0100
  22. ***************
  23. *** 2431,2442 ****
  24.       /* 'matchpairs' is "x:y,x:y" */
  25.       for (p = curbuf->b_p_mps; *p != NUL; ++p)
  26.       {
  27. -     if (PTR2CHAR(p) == c
  28.   #ifdef FEAT_RIGHTLEFT
  29. !             && (curwin->w_p_rl ^ p_ri)
  30. ! #endif
  31. !        )
  32.           break;
  33.       p += MB_PTR2LEN(p) + 1;
  34.       if (PTR2CHAR(p) == c
  35.   #ifdef FEAT_RIGHTLEFT
  36. --- 2431,2440 ----
  37.       /* 'matchpairs' is "x:y,x:y" */
  38.       for (p = curbuf->b_p_mps; *p != NUL; ++p)
  39.       {
  40.   #ifdef FEAT_RIGHTLEFT
  41. !     if (PTR2CHAR(p) == c && (curwin->w_p_rl ^ p_ri))
  42.           break;
  43. + #endif
  44.       p += MB_PTR2LEN(p) + 1;
  45.       if (PTR2CHAR(p) == c
  46.   #ifdef FEAT_RIGHTLEFT
  47. ***************
  48. *** 2451,2457 ****
  49.   
  50.       if ((lpos = findmatch(NULL, NUL)) == NULL)        /* no match, so beep */
  51.       vim_beep();
  52. !     else if (lpos->lnum >= curwin->w_topline)
  53.       {
  54.       if (!curwin->w_p_wrap)
  55.           getvcol(curwin, lpos, NULL, &vcol, NULL);
  56. --- 2449,2455 ----
  57.   
  58.       if ((lpos = findmatch(NULL, NUL)) == NULL)        /* no match, so beep */
  59.       vim_beep();
  60. !     else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline)
  61.       {
  62.       if (!curwin->w_p_wrap)
  63.           getvcol(curwin, lpos, NULL, &vcol, NULL);
  64. *** ../vim-7.3.828/src/version.c    2013-02-20 17:58:01.000000000 +0100
  65. --- src/version.c    2013-02-20 18:35:12.000000000 +0100
  66. ***************
  67. *** 730,731 ****
  68. --- 730,733 ----
  69.   {   /* Add new patch number below this line */
  70. + /**/
  71. +     829,
  72.   /**/
  73.  
  74. -- 
  75. BLACK KNIGHT: The Black Knight always triumphs. Have at you!
  76.    ARTHUR takes his last leg off.  The BLACK KNIGHT's body lands upright.
  77. BLACK KNIGHT: All right, we'll call it a draw.
  78.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  79.  
  80.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  81. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  82. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  83.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  84.