|
Karsten Hopp |
e68389 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e68389 |
Subject: Patch 7.3.829
|
|
Karsten Hopp |
e68389 |
Fcc: outbox
|
|
Karsten Hopp |
e68389 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e68389 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e68389 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e68389 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e68389 |
------------
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
Patch 7.3.829
|
|
Karsten Hopp |
e68389 |
Problem: When compiled with the +rightleft feature 'showmatch' also shows a
|
|
Karsten Hopp |
e68389 |
match for the opening paren. When 'revins' is set the screen may
|
|
Karsten Hopp |
e68389 |
scroll.
|
|
Karsten Hopp |
e68389 |
Solution: Only check the opening paren when the +rightleft feature was
|
|
Karsten Hopp |
e68389 |
enabled. Do not show a match that is not visible. (partly by
|
|
Karsten Hopp |
e68389 |
Christian Brabandt)
|
|
Karsten Hopp |
e68389 |
Files: src/search.c
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
*** ../vim-7.3.828/src/search.c 2013-01-23 16:43:07.000000000 +0100
|
|
Karsten Hopp |
e68389 |
--- src/search.c 2013-02-20 18:33:33.000000000 +0100
|
|
Karsten Hopp |
e68389 |
***************
|
|
Karsten Hopp |
e68389 |
*** 2431,2442 ****
|
|
Karsten Hopp |
e68389 |
/* 'matchpairs' is "x:y,x:y" */
|
|
Karsten Hopp |
e68389 |
for (p = curbuf->b_p_mps; *p != NUL; ++p)
|
|
Karsten Hopp |
e68389 |
{
|
|
Karsten Hopp |
e68389 |
- if (PTR2CHAR(p) == c
|
|
Karsten Hopp |
e68389 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
e68389 |
! && (curwin->w_p_rl ^ p_ri)
|
|
Karsten Hopp |
e68389 |
! #endif
|
|
Karsten Hopp |
e68389 |
! )
|
|
Karsten Hopp |
e68389 |
break;
|
|
Karsten Hopp |
e68389 |
p += MB_PTR2LEN(p) + 1;
|
|
Karsten Hopp |
e68389 |
if (PTR2CHAR(p) == c
|
|
Karsten Hopp |
e68389 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
e68389 |
--- 2431,2440 ----
|
|
Karsten Hopp |
e68389 |
/* 'matchpairs' is "x:y,x:y" */
|
|
Karsten Hopp |
e68389 |
for (p = curbuf->b_p_mps; *p != NUL; ++p)
|
|
Karsten Hopp |
e68389 |
{
|
|
Karsten Hopp |
e68389 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
e68389 |
! if (PTR2CHAR(p) == c && (curwin->w_p_rl ^ p_ri))
|
|
Karsten Hopp |
e68389 |
break;
|
|
Karsten Hopp |
e68389 |
+ #endif
|
|
Karsten Hopp |
e68389 |
p += MB_PTR2LEN(p) + 1;
|
|
Karsten Hopp |
e68389 |
if (PTR2CHAR(p) == c
|
|
Karsten Hopp |
e68389 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
e68389 |
***************
|
|
Karsten Hopp |
e68389 |
*** 2451,2457 ****
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
if ((lpos = findmatch(NULL, NUL)) == NULL) /* no match, so beep */
|
|
Karsten Hopp |
e68389 |
vim_beep();
|
|
Karsten Hopp |
e68389 |
! else if (lpos->lnum >= curwin->w_topline)
|
|
Karsten Hopp |
e68389 |
{
|
|
Karsten Hopp |
e68389 |
if (!curwin->w_p_wrap)
|
|
Karsten Hopp |
e68389 |
getvcol(curwin, lpos, NULL, &vcol, NULL);
|
|
Karsten Hopp |
e68389 |
--- 2449,2455 ----
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
if ((lpos = findmatch(NULL, NUL)) == NULL) /* no match, so beep */
|
|
Karsten Hopp |
e68389 |
vim_beep();
|
|
Karsten Hopp |
e68389 |
! else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline)
|
|
Karsten Hopp |
e68389 |
{
|
|
Karsten Hopp |
e68389 |
if (!curwin->w_p_wrap)
|
|
Karsten Hopp |
e68389 |
getvcol(curwin, lpos, NULL, &vcol, NULL);
|
|
Karsten Hopp |
e68389 |
*** ../vim-7.3.828/src/version.c 2013-02-20 17:58:01.000000000 +0100
|
|
Karsten Hopp |
e68389 |
--- src/version.c 2013-02-20 18:35:12.000000000 +0100
|
|
Karsten Hopp |
e68389 |
***************
|
|
Karsten Hopp |
e68389 |
*** 730,731 ****
|
|
Karsten Hopp |
e68389 |
--- 730,733 ----
|
|
Karsten Hopp |
e68389 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e68389 |
+ /**/
|
|
Karsten Hopp |
e68389 |
+ 829,
|
|
Karsten Hopp |
e68389 |
/**/
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
--
|
|
Karsten Hopp |
e68389 |
BLACK KNIGHT: The Black Knight always triumphs. Have at you!
|
|
Karsten Hopp |
e68389 |
ARTHUR takes his last leg off. The BLACK KNIGHT's body lands upright.
|
|
Karsten Hopp |
e68389 |
BLACK KNIGHT: All right, we'll call it a draw.
|
|
Karsten Hopp |
e68389 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
e68389 |
|
|
Karsten Hopp |
e68389 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e68389 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e68389 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e68389 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|