lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
64ab23a
To: vim_dev@googlegroups.com
64ab23a
Subject: Patch 7.3.192
64ab23a
Fcc: outbox
64ab23a
From: Bram Moolenaar <Bram@moolenaar.net>
64ab23a
Mime-Version: 1.0
64ab23a
Content-Type: text/plain; charset=UTF-8
64ab23a
Content-Transfer-Encoding: 8bit
64ab23a
------------
64ab23a
64ab23a
Patch 7.3.192
64ab23a
Problem:    Ex command ":s/ \?/ /g" splits multi-byte characters into bytes.
64ab23a
	    (Dominique Pelle)
64ab23a
Solution:   Advance over whole character instead of one byte.
64ab23a
Files:	    src/ex_cmds.c
64ab23a
64ab23a
64ab23a
*** ../vim-7.3.191/src/ex_cmds.c	2011-05-10 16:41:13.000000000 +0200
64ab23a
--- src/ex_cmds.c	2011-05-19 14:23:33.000000000 +0200
64ab23a
***************
64ab23a
*** 4625,4631 ****
64ab23a
  			 * for a match in this line again. */
64ab23a
  			skip_match = TRUE;
64ab23a
  		    else
64ab23a
! 			++matchcol; /* search for a match at next column */
64ab23a
  		    goto skip;
64ab23a
  		}
64ab23a
  
64ab23a
--- 4625,4639 ----
64ab23a
  			 * for a match in this line again. */
64ab23a
  			skip_match = TRUE;
64ab23a
  		    else
64ab23a
! 		    {
64ab23a
! 			 /* search for a match at next column */
64ab23a
! #ifdef FEAT_MBYTE
64ab23a
! 			if (has_mbyte)
64ab23a
! 			    matchcol += mb_ptr2len(sub_firstline + matchcol);
64ab23a
! 			else
64ab23a
! #endif
64ab23a
! 			    ++matchcol;
64ab23a
! 		    }
64ab23a
  		    goto skip;
64ab23a
  		}
64ab23a
  
64ab23a
*** ../vim-7.3.191/src/version.c	2011-05-19 13:40:47.000000000 +0200
64ab23a
--- src/version.c	2011-05-19 14:28:44.000000000 +0200
64ab23a
***************
64ab23a
*** 711,712 ****
64ab23a
--- 711,714 ----
64ab23a
  {   /* Add new patch number below this line */
64ab23a
+ /**/
64ab23a
+     192,
64ab23a
  /**/
64ab23a
64ab23a
-- 
64ab23a
From "know your smileys":
64ab23a
 :-F	Bucktoothed vampire with one tooth missing
64ab23a
64ab23a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
64ab23a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64ab23a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
64ab23a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///