diff src/screen.c @ 6064:d44f298c43c7 v7.4.371

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)
author Bram Moolenaar <bram@vim.org>
date Wed, 16 Jul 2014 17:29:51 +0200
parents 7fa2bed947fd
children 76e7fb736c0e
line wrap: on
line diff
--- 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>" */