vim-patch: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:
Felipe Morales
2014-08-16 15:20:04 -04:00
parent dfdfee0260
commit 244ea63724
2 changed files with 4 additions and 1 deletions

View File

@@ -3562,6 +3562,9 @@ win_line (
mb_utf8 = FALSE; /* don't draw as UTF-8 */ mb_utf8 = FALSE; /* don't draw as UTF-8 */
} else if (c != NUL) { } else if (c != NUL) {
p_extra = transchar(c); p_extra = transchar(c);
if (n_extra == 0) {
n_extra = byte2cells(c);
}
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>" */
c_extra = NUL; c_extra = NUL;

View File

@@ -224,7 +224,7 @@ static int included_patches[] = {
//374, //374,
//373, //373,
//372, //372,
//371, 371,
//370, //370,
//369, //369,
//368, //368,