From: Bram Moolenaar Date: Wed, 16 Jul 2014 15:29:51 +0000 (+0200) Subject: updated for version 7.4.371 X-Git-Tag: v7.4.371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5524aebf160ac3acef6daf5485c9adc3b5aca92f;p=vim 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 index 909a60658..abbd9112d 100644 --- a/src/screen.c +++ b/src/screen.c @@ -4646,6 +4646,8 @@ win_line(wp, lnum, startrow, endrow, nochange) 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 index 6b730cb68..84bc24a51 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 371, /**/ 370, /**/