1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Ex command ":s/ \?/ /g" splits multi-byte characters into bytes.
13 Solution: Advance over whole character instead of one byte.
17 *** ../vim-7.3.191/src/ex_cmds.c 2011-05-10 16:41:13.000000000 +0200
18 --- src/ex_cmds.c 2011-05-19 14:23:33.000000000 +0200
21 * for a match in this line again. */
24 ! ++matchcol; /* search for a match at next column */
29 * for a match in this line again. */
33 ! /* search for a match at next column */
36 ! matchcol += mb_ptr2len(sub_firstline + matchcol);
44 *** ../vim-7.3.191/src/version.c 2011-05-19 13:40:47.000000000 +0200
45 --- src/version.c 2011-05-19 14:28:44.000000000 +0200
49 { /* Add new patch number below this line */
55 From "know your smileys":
56 :-F Bucktoothed vampire with one tooth missing
58 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
59 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
60 \\\ an exciting new programming language -- http://www.Zimbu.org ///
61 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///