diff src/screen.c @ 507:a1059cda45f2 v7.0142

updated for version 7.0142
author vimboss
date Tue, 06 Sep 2005 19:25:11 +0000
parents 35cde31bdcbd
children d50452846776
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3480,6 +3480,15 @@ win_line(wp, lnum, startrow, endrow)
 			if (mb_c < 0x80)
 			    c = mb_c;
 			mb_utf8 = TRUE;
+
+			/* At start of the line we can have a composing char.
+			 * Draw it as a space with a composing char. */
+			if (utf_iscomposing(mb_c))
+			{
+			    u8c_c2 = u8c_c1;
+			    u8c_c1 = mb_c;
+			    mb_c = ' ';
+			}
 		    }
 
 		    if ((mb_l == 1 && c >= 0x80)