mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.4.303
Problem: When using double-width characters the text displayed on the command line is sometimes truncated. Solution: Reset the string lenght. (Nobuhiro Takasaki)
This commit is contained in:
@@ -6916,15 +6916,16 @@ screen_puts(text, row, col, attr)
|
|||||||
* a NUL.
|
* a NUL.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
screen_puts_len(text, len, row, col, attr)
|
screen_puts_len(text, textlen, row, col, attr)
|
||||||
char_u *text;
|
char_u *text;
|
||||||
int len;
|
int textlen;
|
||||||
int row;
|
int row;
|
||||||
int col;
|
int col;
|
||||||
int attr;
|
int attr;
|
||||||
{
|
{
|
||||||
unsigned off;
|
unsigned off;
|
||||||
char_u *ptr = text;
|
char_u *ptr = text;
|
||||||
|
int len = textlen;
|
||||||
int c;
|
int c;
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
unsigned max_off;
|
unsigned max_off;
|
||||||
@@ -7169,7 +7170,11 @@ screen_puts_len(text, len, row, col, attr)
|
|||||||
col += mbyte_cells;
|
col += mbyte_cells;
|
||||||
ptr += mbyte_blen;
|
ptr += mbyte_blen;
|
||||||
if (clear_next_cell)
|
if (clear_next_cell)
|
||||||
|
{
|
||||||
|
/* This only happens at the end, display one space next. */
|
||||||
ptr = (char_u *)" ";
|
ptr = (char_u *)" ";
|
||||||
|
len = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
303,
|
||||||
/**/
|
/**/
|
||||||
302,
|
302,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user