0
0
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:
Bram Moolenaar
2017-02-23 14:55:59 +01:00
parent f06e5a549f
commit 3457d295f4
2 changed files with 3 additions and 1 deletions

View File

@@ -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));

View File

@@ -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,
/**/ /**/