|
Karsten Hopp |
ed1c5b |
To: vim-dev@vim.org
|
|
Karsten Hopp |
ed1c5b |
Subject: Patch 7.2.418
|
|
Karsten Hopp |
ed1c5b |
Fcc: outbox
|
|
Karsten Hopp |
ed1c5b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ed1c5b |
Mime-Version: 1.0
|
|
Karsten Hopp |
ed1c5b |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ed1c5b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ed1c5b |
------------
|
|
Karsten Hopp |
ed1c5b |
|
|
Karsten Hopp |
ed1c5b |
Patch 7.2.418
|
|
Karsten Hopp |
ed1c5b |
Problem: Vim tries to set the background or foreground color in a terminal
|
|
Karsten Hopp |
ed1c5b |
to -1. (Graywh) Happens with ":hi Normal ctermbg=NONE".
|
|
Karsten Hopp |
ed1c5b |
Solution: When resetting the foreground or background color don't set the
|
|
Karsten Hopp |
ed1c5b |
color, let the clear screen code do that.
|
|
Karsten Hopp |
ed1c5b |
Files: src/syntax.c
|
|
Karsten Hopp |
ed1c5b |
|
|
Karsten Hopp |
ed1c5b |
|
|
Karsten Hopp |
ed1c5b |
*** ../vim-7.2.417/src/syntax.c 2010-03-23 14:39:07.000000000 +0100
|
|
Karsten Hopp |
ed1c5b |
--- src/syntax.c 2010-05-13 15:34:27.000000000 +0200
|
|
Karsten Hopp |
ed1c5b |
***************
|
|
Karsten Hopp |
ed1c5b |
*** 7136,7142 ****
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
! /* Add one to the argument, to avoid zero */
|
|
Karsten Hopp |
ed1c5b |
if (key[5] == 'F')
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
HL_TABLE()[idx].sg_cterm_fg = color + 1;
|
|
Karsten Hopp |
ed1c5b |
--- 7136,7143 ----
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
! /* Add one to the argument, to avoid zero. Zero is used for
|
|
Karsten Hopp |
ed1c5b |
! * "NONE", then "color" is -1. */
|
|
Karsten Hopp |
ed1c5b |
if (key[5] == 'F')
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
HL_TABLE()[idx].sg_cterm_fg = color + 1;
|
|
Karsten Hopp |
ed1c5b |
***************
|
|
Karsten Hopp |
ed1c5b |
*** 7150,7156 ****
|
|
Karsten Hopp |
ed1c5b |
#endif
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
must_redraw = CLEAR;
|
|
Karsten Hopp |
ed1c5b |
! if (termcap_active)
|
|
Karsten Hopp |
ed1c5b |
term_fg_color(color);
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
--- 7151,7157 ----
|
|
Karsten Hopp |
ed1c5b |
#endif
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
must_redraw = CLEAR;
|
|
Karsten Hopp |
ed1c5b |
! if (termcap_active && color >= 0)
|
|
Karsten Hopp |
ed1c5b |
term_fg_color(color);
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
***************
|
|
Karsten Hopp |
ed1c5b |
*** 7167,7182 ****
|
|
Karsten Hopp |
ed1c5b |
#endif
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
must_redraw = CLEAR;
|
|
Karsten Hopp |
ed1c5b |
! if (termcap_active)
|
|
Karsten Hopp |
ed1c5b |
! term_bg_color(color);
|
|
Karsten Hopp |
ed1c5b |
! if (t_colors < 16)
|
|
Karsten Hopp |
ed1c5b |
! i = (color == 0 || color == 4);
|
|
Karsten Hopp |
ed1c5b |
! else
|
|
Karsten Hopp |
ed1c5b |
! i = (color < 7 || color == 8);
|
|
Karsten Hopp |
ed1c5b |
! /* Set the 'background' option if the value is wrong. */
|
|
Karsten Hopp |
ed1c5b |
! if (i != (*p_bg == 'd'))
|
|
Karsten Hopp |
ed1c5b |
! set_option_value((char_u *)"bg", 0L,
|
|
Karsten Hopp |
ed1c5b |
! i ? (char_u *)"dark" : (char_u *)"light", 0);
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
--- 7168,7188 ----
|
|
Karsten Hopp |
ed1c5b |
#endif
|
|
Karsten Hopp |
ed1c5b |
{
|
|
Karsten Hopp |
ed1c5b |
must_redraw = CLEAR;
|
|
Karsten Hopp |
ed1c5b |
! if (color >= 0)
|
|
Karsten Hopp |
ed1c5b |
! {
|
|
Karsten Hopp |
ed1c5b |
! if (termcap_active)
|
|
Karsten Hopp |
ed1c5b |
! term_bg_color(color);
|
|
Karsten Hopp |
ed1c5b |
! if (t_colors < 16)
|
|
Karsten Hopp |
ed1c5b |
! i = (color == 0 || color == 4);
|
|
Karsten Hopp |
ed1c5b |
! else
|
|
Karsten Hopp |
ed1c5b |
! i = (color < 7 || color == 8);
|
|
Karsten Hopp |
ed1c5b |
! /* Set the 'background' option if the value is
|
|
Karsten Hopp |
ed1c5b |
! * wrong. */
|
|
Karsten Hopp |
ed1c5b |
! if (i != (*p_bg == 'd'))
|
|
Karsten Hopp |
ed1c5b |
! set_option_value((char_u *)"bg", 0L,
|
|
Karsten Hopp |
ed1c5b |
! i ? (char_u *)"dark"
|
|
Karsten Hopp |
ed1c5b |
! : (char_u *)"light", 0);
|
|
Karsten Hopp |
ed1c5b |
! }
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
}
|
|
Karsten Hopp |
ed1c5b |
*** ../vim-7.2.417/src/version.c 2010-05-13 13:12:01.000000000 +0200
|
|
Karsten Hopp |
ed1c5b |
--- src/version.c 2010-05-13 14:29:59.000000000 +0200
|
|
Karsten Hopp |
ed1c5b |
***************
|
|
Karsten Hopp |
ed1c5b |
*** 683,684 ****
|
|
Karsten Hopp |
ed1c5b |
--- 683,686 ----
|
|
Karsten Hopp |
ed1c5b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ed1c5b |
+ /**/
|
|
Karsten Hopp |
ed1c5b |
+ 418,
|
|
Karsten Hopp |
ed1c5b |
/**/
|
|
Karsten Hopp |
ed1c5b |
|
|
Karsten Hopp |
ed1c5b |
--
|
|
Karsten Hopp |
ed1c5b |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
ed1c5b |
30. Even though you died last week, you've managed to retain OPS on your
|
|
Karsten Hopp |
ed1c5b |
favorite IRC channel.
|
|
Karsten Hopp |
ed1c5b |
|
|
Karsten Hopp |
ed1c5b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ed1c5b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ed1c5b |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
ed1c5b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|