summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-06 12:03:06 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-06 12:03:06 +0200
commit64fdf5ceae75d85e139a0d3812e0544f5bf6cb56 (patch)
tree5c8e833a290f5aeae2498cadb62fbef4303a0470 /src/ex_getln.c
parentc873442b15bb94dc099363f6e1ffa57cc4d3ea04 (diff)
downloadvim-git-64fdf5ceae75d85e139a0d3812e0544f5bf6cb56.tar.gz
updated for version 7.3.539v7.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)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index a3a9c7b91..c823119ad 100644
--- 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;