changeset 3558:7a710cf51d73 v7.3.539

updated for version 7.3.539 Problem: Redrawing a character on the command line does not work properly for multi-byte charactes. Solution: Count the number of bytes in a character. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Jun 2012 12:03:06 +0200
parents 9cb3a75a20b9
children 772dcb4acf2c
files src/ex_getln.c src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2764,6 +2764,11 @@ unputcmdline()
     msg_no_more = TRUE;
     if (ccline.cmdlen == ccline.cmdpos)
 	msg_putchar(' ');
+#ifdef FEAT_MBYTE
+    else if (has_mbyte)
+	draw_cmdline(ccline.cmdpos,
+			       (*mb_ptr2len)(ccline.cmdbuff + ccline.cmdpos));
+#endif
     else
 	draw_cmdline(ccline.cmdpos, 1);
     msg_no_more = FALSE;
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    539,
+/**/
     538,
 /**/
     537,