0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2014-07-16 17:29:51 +02:00
parent b5647f71c2
commit 5524aebf16
2 changed files with 4 additions and 0 deletions

View File

@@ -4646,6 +4646,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
else if (c != NUL) else if (c != NUL)
{ {
p_extra = transchar(c); p_extra = transchar(c);
if (n_extra == 0)
n_extra = byte2cells(c) - 1;
#ifdef FEAT_RIGHTLEFT #ifdef FEAT_RIGHTLEFT
if ((dy_flags & DY_UHEX) && wp->w_p_rl) if ((dy_flags & DY_UHEX) && wp->w_p_rl)
rl_mirror(p_extra); /* reverse "<12>" */ rl_mirror(p_extra); /* reverse "<12>" */

View File

@@ -734,6 +734,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 */
/**/
371,
/**/ /**/
370, 370,
/**/ /**/