# HG changeset patch # User Bram Moolenaar # Date 1405524591 -7200 # Node ID d44f298c43c74555f4ea21b710d377133f948d61 # Parent 616723e9f486a07ad33472f29e9fa0b79b2f0f18 updated for version 7.4.371 Problem: When 'linebreak' is set control characters are not correctly displayed. (Kimmy Lindvall) Solution: Set n_extra. (Christian Brabandt) diff --git a/src/screen.c b/src/screen.c --- a/src/screen.c +++ b/src/screen.c @@ -4646,6 +4646,8 @@ win_line(wp, lnum, startrow, endrow, noc else if (c != NUL) { p_extra = transchar(c); + if (n_extra == 0) + n_extra = byte2cells(c) - 1; #ifdef FEAT_RIGHTLEFT if ((dy_flags & DY_UHEX) && wp->w_p_rl) rl_mirror(p_extra); /* reverse "<12>" */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 371, +/**/ 370, /**/ 369,