]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.081 v7.3.081
authorBram Moolenaar <Bram@vim.org>
Wed, 8 Dec 2010 18:56:58 +0000 (19:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Dec 2010 18:56:58 +0000 (19:56 +0100)
Problem:    Non-printable characters in 'statusline' cause trouble. (ZyX)
Solution:   Use transstr(). (partly by Caio Ariede)

src/screen.c
src/version.c

index 380eb8b3b9dae7b2bbd3eb6f25736dc8d94e26cc..2f21d462c271e743cfb931d349bbd9a02fd3b2c3 100644 (file)
@@ -3405,9 +3405,9 @@ win_line(wp, lnum, startrow, endrow, nochange)
 # endif
                   )
                {
-                   int_u       text_sign;
+                   int text_sign;
 # ifdef FEAT_SIGN_ICONS
-                   int_u       icon_sign;
+                   int icon_sign;
 # endif
 
                    /* Draw two cells with the sign value or blank. */
@@ -6522,8 +6522,17 @@ win_redr_custom(wp, draw_ruler)
                                stl, use_sandbox,
                                fillchar, maxwidth, hltab, tabtab);
     vim_free(stl);
-    len = (int)STRLEN(buf);
 
+    /* Make all characters printable. */
+    p = transstr(buf);
+    if (p != NULL)
+    {
+       vim_strncpy(buf, p, sizeof(buf) - 1);
+       vim_free(p);
+    }
+
+    /* fill up with "fillchar" */
+    len = (int)STRLEN(buf);
     while (width < maxwidth && len < (int)sizeof(buf) - 1)
     {
 #ifdef FEAT_MBYTE
index 494a6b9938a891c80dba88aed2378827225c6fd8..13cd448b5ab88e026a983bca9a4811ee07139487 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    81,
 /**/
     80,
 /**/