diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-06 12:14:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-06 12:14:48 +0100 |
commit | 9c2e6cc6edb939828032c9179fe05b57fa84a384 (patch) | |
tree | c4b618e124479c4d567ea6c1ff04aa064d04c95d /src/buffer.c | |
parent | 39d7d51bcdc0edd8eb3034a9d094511b7b75e9e1 (diff) |
updated for version 7.3.799v7.3.799
Problem: The color column is not correct when entering a buffer. (Ben
Fritz)
Solution: Call check_colorcolumn() if 'textwidth' changed. (Christian
Brabandt)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 7f0c106e13..f4713a1f79 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1441,6 +1441,8 @@ set_curbuf(buf, action) 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) @@ -1464,6 +1466,8 @@ enter_buffer(buf) #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. */ |