summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-14 19:53:30 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-14 19:53:30 +0200
commit1a38442dbc01e511c29e19faa2ee9a8527151887 (patch)
tree1aacc128778656b1a778326ee63cf2d28f7f3072 /src/window.c
parentb28ebbca8400dccfc5eb9957ed96fcba9fe05e46 (diff)
downloadvim-git-1a38442dbc01e511c29e19faa2ee9a8527151887.tar.gz
Added 'colorcolumn' option. Partly by Gregor Uhlenheuer.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index c2590e5f9..2c780dfb5 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1225,6 +1225,10 @@ win_init(newp, oldp, flags)
# endif
win_init_some(newp, oldp);
+
+# ifdef FEAT_SYN_HL
+ check_colorcolumn(newp);
+# endif
}
/*
@@ -4413,6 +4417,7 @@ win_free(wp, tp)
#ifdef FEAT_SYN_HL
reset_synblock(wp); /* free independent synblock */
+ vim_free(wp->w_p_cc_cols);
#endif
#ifdef FEAT_AUTOCMD