1
0
forked from aniani/vim

updated for version 7.3.328

Problem:    When command line wraps the cursor may be displayed wrong when
            there are multi-byte characters.
Solution:   Position the cursor before drawing the text. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar 2011-09-30 17:46:21 +02:00
parent 8f535582ad
commit 73dc59aad8
2 changed files with 3 additions and 0 deletions

View File

@ -2870,6 +2870,7 @@ put_on_cmdline(str, len, redraw)
{ {
msg_no_more = TRUE; msg_no_more = TRUE;
i = cmdline_row; i = cmdline_row;
cursorcmd();
draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos); draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos);
/* Avoid clearing the rest of the line too often. */ /* Avoid clearing the rest of the line too often. */
if (cmdline_row != i || ccline.overstrike) if (cmdline_row != i || ccline.overstrike)

View File

@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
328,
/**/ /**/
327, 327,
/**/ /**/