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