Permalink
Browse files

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)
  • Loading branch information...
brammool committed Feb 23, 2017
1 parent f06e5a5 commit 3457d295f4035293a78f9a9851ea416f923dd59e
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/screen.c
  2. +2 −0 src/version.c
View
@@ -6730,7 +6730,7 @@ win_redr_status(win_T *wp)
if (wp->w_buffer->b_p_ro)
{
STRCPY(p + len, _("[RO]"));
- len += 4;
+ len += (int)STRLEN(p + len);
}
this_ru_col = ru_col - (Columns - W_WIDTH(wp));
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 353,
/**/
352,
/**/

0 comments on commit 3457d29

Please sign in to comment.