Mercurial > vim
comparison src/ex_getln.c @ 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 | ac2e00f917df |
children | 3ac005f02cf0 |
comparison
equal
deleted
inserted
replaced
3557:9cb3a75a20b9 | 3558:7a710cf51d73 |
---|---|
2762 if (cmd_silent) | 2762 if (cmd_silent) |
2763 return; | 2763 return; |
2764 msg_no_more = TRUE; | 2764 msg_no_more = TRUE; |
2765 if (ccline.cmdlen == ccline.cmdpos) | 2765 if (ccline.cmdlen == ccline.cmdpos) |
2766 msg_putchar(' '); | 2766 msg_putchar(' '); |
2767 #ifdef FEAT_MBYTE | |
2768 else if (has_mbyte) | |
2769 draw_cmdline(ccline.cmdpos, | |
2770 (*mb_ptr2len)(ccline.cmdbuff + ccline.cmdpos)); | |
2771 #endif | |
2767 else | 2772 else |
2768 draw_cmdline(ccline.cmdpos, 1); | 2773 draw_cmdline(ccline.cmdpos, 1); |
2769 msg_no_more = FALSE; | 2774 msg_no_more = FALSE; |
2770 cursorcmd(); | 2775 cursorcmd(); |
2771 } | 2776 } |