diff src/screen.c @ 548:f43150a669dc

updated for version 7.0155
author vimboss
date Mon, 10 Oct 2005 20:59:28 +0000
parents 2df7f3a5eb96
children 0ae54f30d5bc
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -2390,6 +2390,7 @@ copy_text_attr(off, buf, len, attr)
 
 /*
  * Fill the foldcolumn at "p" for window "wp".
+ * Only to be called when 'foldcolumn' > 0.
  */
     static void
 fill_foldcolumn(p, wp, closed, lnum)
@@ -2434,7 +2435,7 @@ fill_foldcolumn(p, wp, closed, lnum)
 	}
     }
     if (closed)
-	p[i] = '+';
+	p[i >= wp->w_p_fdc ? i - 1 : i] = '+';
 }
 #endif /* FEAT_FOLDING */