Karsten Hopp 8ff697
To: vim_dev@googlegroups.com
Karsten Hopp 8ff697
Subject: Patch 7.3.539
Karsten Hopp 8ff697
Fcc: outbox
Karsten Hopp 8ff697
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8ff697
Mime-Version: 1.0
Karsten Hopp 8ff697
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8ff697
Content-Transfer-Encoding: 8bit
Karsten Hopp 8ff697
------------
Karsten Hopp 8ff697
Karsten Hopp 8ff697
Patch 7.3.539
Karsten Hopp 8ff697
Problem:    Redrawing a character on the command line does not work properly
Karsten Hopp 8ff697
	    for multi-byte charactes.
Karsten Hopp 8ff697
Solution:   Count the number of bytes in a character. (Yukihiro Nakadaira)
Karsten Hopp 8ff697
Files:	    src/ex_getln.c
Karsten Hopp 8ff697
Karsten Hopp 8ff697
Karsten Hopp 8ff697
*** ../vim-7.3.538/src/ex_getln.c	2012-05-25 11:02:34.000000000 +0200
Karsten Hopp 8ff697
--- src/ex_getln.c	2012-06-06 11:50:37.000000000 +0200
Karsten Hopp 8ff697
***************
Karsten Hopp 8ff697
*** 2764,2769 ****
Karsten Hopp 8ff697
--- 2764,2774 ----
Karsten Hopp 8ff697
      msg_no_more = TRUE;
Karsten Hopp 8ff697
      if (ccline.cmdlen == ccline.cmdpos)
Karsten Hopp 8ff697
  	msg_putchar(' ');
Karsten Hopp 8ff697
+ #ifdef FEAT_MBYTE
Karsten Hopp 8ff697
+     else if (has_mbyte)
Karsten Hopp 8ff697
+ 	draw_cmdline(ccline.cmdpos,
Karsten Hopp 8ff697
+ 			       (*mb_ptr2len)(ccline.cmdbuff + ccline.cmdpos));
Karsten Hopp 8ff697
+ #endif
Karsten Hopp 8ff697
      else
Karsten Hopp 8ff697
  	draw_cmdline(ccline.cmdpos, 1);
Karsten Hopp 8ff697
      msg_no_more = FALSE;
Karsten Hopp 8ff697
*** ../vim-7.3.538/src/version.c	2012-06-01 18:34:37.000000000 +0200
Karsten Hopp 8ff697
--- src/version.c	2012-06-06 12:02:45.000000000 +0200
Karsten Hopp 8ff697
***************
Karsten Hopp 8ff697
*** 716,717 ****
Karsten Hopp 8ff697
--- 716,719 ----
Karsten Hopp 8ff697
  {   /* Add new patch number below this line */
Karsten Hopp 8ff697
+ /**/
Karsten Hopp 8ff697
+     539,
Karsten Hopp 8ff697
  /**/
Karsten Hopp 8ff697
Karsten Hopp 8ff697
-- 
Karsten Hopp 8ff697
If they don't keep on exercising their lips, he thought, their brains
Karsten Hopp 8ff697
start working.
Karsten Hopp 8ff697
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Karsten Hopp 8ff697
Karsten Hopp 8ff697
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8ff697
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8ff697
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8ff697
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///