mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.0353: if [RO] is translated it may be truncated
Problem: If [RO] in the status line is translated to a longer string, it is trunctted to 4 bytes. Solution: Skip over the resulting string. (Jente Hidskes, closes #1499)
This commit is contained in:
@@ -6730,7 +6730,7 @@ win_redr_status(win_T *wp)
|
|||||||
if (wp->w_buffer->b_p_ro)
|
if (wp->w_buffer->b_p_ro)
|
||||||
{
|
{
|
||||||
STRCPY(p + len, _("[RO]"));
|
STRCPY(p + len, _("[RO]"));
|
||||||
len += 4;
|
len += (int)STRLEN(p + len);
|
||||||
}
|
}
|
||||||
|
|
||||||
this_ru_col = ru_col - (Columns - W_WIDTH(wp));
|
this_ru_col = ru_col - (Columns - W_WIDTH(wp));
|
||||||
|
@@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
353,
|
||||||
/**/
|
/**/
|
||||||
352,
|
352,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user