mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.799
Problem: The color column is not correct when entering a buffer. (Ben Fritz) Solution: Call check_colorcolumn() if 'textwidth' changed. (Christian Brabandt)
This commit is contained in:
@@ -1441,6 +1441,8 @@ set_curbuf(buf, action)
|
|||||||
enter_buffer(buf)
|
enter_buffer(buf)
|
||||||
buf_T *buf;
|
buf_T *buf;
|
||||||
{
|
{
|
||||||
|
long old_tw = curbuf->b_p_tw;
|
||||||
|
|
||||||
/* Copy buffer and window local option values. Not for a help buffer. */
|
/* Copy buffer and window local option values. Not for a help buffer. */
|
||||||
buf_copy_options(buf, BCO_ENTER | BCO_NOHELP);
|
buf_copy_options(buf, BCO_ENTER | BCO_NOHELP);
|
||||||
if (!buf->b_help)
|
if (!buf->b_help)
|
||||||
@@ -1464,6 +1466,8 @@ enter_buffer(buf)
|
|||||||
|
|
||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
curwin->w_s = &(buf->b_s);
|
curwin->w_s = &(buf->b_s);
|
||||||
|
if (old_tw != buf->b_p_tw)
|
||||||
|
check_colorcolumn(curwin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Cursor on first line by default. */
|
/* Cursor on first line by default. */
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
799,
|
||||||
/**/
|
/**/
|
||||||
798,
|
798,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user