Patch 7.4.050
Problem:    "gn" selects too much for the pattern "\d" when there are two
            lines with a single digit. (Ryan Carney)
Solution:   Adjust the logic of is_one_char(). (Christian Brabandt)
Files:      src/search.c, src/testdir/test53.in, src/testdir/test53.ok


*** ../vim-7.4.049/src/search.c 2013-08-14 17:45:25.000000000 +0200
--- src/search.c        2013-10-02 21:49:40.000000000 +0200
***************
*** 4680,4687 ****
                && regmatch.startpos[0].lnum == regmatch.endpos[0].lnum
                && regmatch.startpos[0].col == regmatch.endpos[0].col);
  
!       if (!result && incl(&pos) == 0 && pos.col == regmatch.endpos[0].col)
!           result  = TRUE;
      }
  
      called_emsg |= save_called_emsg;
--- 4680,4687 ----
                && regmatch.startpos[0].lnum == regmatch.endpos[0].lnum
                && regmatch.startpos[0].col == regmatch.endpos[0].col);
  
!       if (!result && inc(&pos) >= 0 && pos.col == regmatch.endpos[0].col)
!           result = TRUE;
      }
  
      called_emsg |= save_called_emsg;
*** ../vim-7.4.049/src/testdir/test53.in        2013-06-30 14:31:56.000000000 
+0200
--- src/testdir/test53.in       2013-10-02 21:47:10.000000000 +0200
***************
*** 46,51 ****
--- 46,54 ----
  :set selection=exclusive
  $cgNmongoose /i
  cgnj 
+ :" Make sure there is no other match y uppercase.
+ / x59
+ gggnd
  :/^start:/,/^end:/wq! test.out
  ENDTEST
  
***************
*** 75,78 ****
--- 78,84 ----
  uniquepattern uniquepattern
  my very excellent mother just served us nachos
  for (i=0; i<=10; i++)
+ Y
+ text
+ Y
  end:
*** ../vim-7.4.049/src/testdir/test53.ok        2013-06-30 14:31:56.000000000 
+0200
--- src/testdir/test53.ok       2013-10-02 21:47:34.000000000 +0200
***************
*** 27,30 ****
--- 27,33 ----
   uniquepattern
  my very excellent mongoose just served us nachos
  for (j=0; i<=10; i++)
+ 
+ text
+ Y
  end:
*** ../vim-7.4.049/src/version.c        2013-10-02 18:43:00.000000000 +0200
--- src/version.c       2013-10-02 21:51:34.000000000 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     50,
  /**/

-- 
Why doesn't Tarzan have a beard?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui