mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.679
Problem: Color values greater than 255 cause problems on MS-Windows. Solution: Truncate to 255 colors. (Yasuhiro Matsumoto)
This commit is contained in:
parent
f11ce667b0
commit
6383b92d8c
@ -5262,7 +5262,7 @@ gotoxy(
|
|||||||
static void
|
static void
|
||||||
textattr(WORD wAttr)
|
textattr(WORD wAttr)
|
||||||
{
|
{
|
||||||
g_attrCurrent = wAttr;
|
g_attrCurrent = wAttr & 0xff;
|
||||||
|
|
||||||
SetConsoleTextAttribute(g_hConOut, wAttr);
|
SetConsoleTextAttribute(g_hConOut, wAttr);
|
||||||
}
|
}
|
||||||
@ -5271,7 +5271,7 @@ textattr(WORD wAttr)
|
|||||||
static void
|
static void
|
||||||
textcolor(WORD wAttr)
|
textcolor(WORD wAttr)
|
||||||
{
|
{
|
||||||
g_attrCurrent = (g_attrCurrent & 0xf0) + wAttr;
|
g_attrCurrent = (g_attrCurrent & 0xf0) + (wAttr & 0x0f);
|
||||||
|
|
||||||
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
||||||
}
|
}
|
||||||
@ -5280,7 +5280,7 @@ textcolor(WORD wAttr)
|
|||||||
static void
|
static void
|
||||||
textbackground(WORD wAttr)
|
textbackground(WORD wAttr)
|
||||||
{
|
{
|
||||||
g_attrCurrent = (g_attrCurrent & 0x0f) + (wAttr << 4);
|
g_attrCurrent = (g_attrCurrent & 0x0f) + ((wAttr & 0x0f) << 4);
|
||||||
|
|
||||||
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
||||||
}
|
}
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
679,
|
||||||
/**/
|
/**/
|
||||||
678,
|
678,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user