Problem: The color column is not correct when entering a buffer. (Ben
Fritz)
Solution: Call check_colorcolumn() if 'textwidth' changed. (Christian
Brabandt)
enter_buffer(buf)
buf_T *buf;
{
+ long old_tw = curbuf->b_p_tw;
+
/* Copy buffer and window local option values. Not for a help buffer. */
buf_copy_options(buf, BCO_ENTER | BCO_NOHELP);
if (!buf->b_help)
#ifdef FEAT_SYN_HL
curwin->w_s = &(buf->b_s);
+ if (old_tw != buf->b_p_tw)
+ check_colorcolumn(curwin);
#endif
/* Cursor on first line by default. */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 799,
/**/
798,
/**/