|
Karsten Hopp |
ca29de |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ca29de |
Subject: Patch 7.4.679
|
|
Karsten Hopp |
ca29de |
Fcc: outbox
|
|
Karsten Hopp |
ca29de |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ca29de |
Mime-Version: 1.0
|
|
Karsten Hopp |
ca29de |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ca29de |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ca29de |
------------
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
Patch 7.4.679
|
|
Karsten Hopp |
ca29de |
Problem: Color values greater than 255 cause problems on MS-Windows.
|
|
Karsten Hopp |
ca29de |
Solution: Truncate to 255 colors. (Yasuhiro Matsumoto)
|
|
Karsten Hopp |
ca29de |
Files: src/os_win32.c
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
*** ../vim-7.4.678/src/os_win32.c 2015-03-21 22:18:37.808371766 +0100
|
|
Karsten Hopp |
ca29de |
--- src/os_win32.c 2015-03-24 17:10:04.870555251 +0100
|
|
Karsten Hopp |
ca29de |
***************
|
|
Karsten Hopp |
ca29de |
*** 5262,5268 ****
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textattr(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = wAttr;
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, wAttr);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
--- 5262,5268 ----
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textattr(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = wAttr & 0xff;
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, wAttr);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
***************
|
|
Karsten Hopp |
ca29de |
*** 5271,5277 ****
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textcolor(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = (g_attrCurrent & 0xf0) + wAttr;
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
--- 5271,5277 ----
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textcolor(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = (g_attrCurrent & 0xf0) + (wAttr & 0x0f);
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
***************
|
|
Karsten Hopp |
ca29de |
*** 5280,5286 ****
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textbackground(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = (g_attrCurrent & 0x0f) + (wAttr << 4);
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
--- 5280,5286 ----
|
|
Karsten Hopp |
ca29de |
static void
|
|
Karsten Hopp |
ca29de |
textbackground(WORD wAttr)
|
|
Karsten Hopp |
ca29de |
{
|
|
Karsten Hopp |
ca29de |
! g_attrCurrent = (g_attrCurrent & 0x0f) + ((wAttr & 0x0f) << 4);
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
SetConsoleTextAttribute(g_hConOut, g_attrCurrent);
|
|
Karsten Hopp |
ca29de |
}
|
|
Karsten Hopp |
ca29de |
*** ../vim-7.4.678/src/version.c 2015-03-24 16:48:16.973934896 +0100
|
|
Karsten Hopp |
ca29de |
--- src/version.c 2015-03-24 17:09:45.470788914 +0100
|
|
Karsten Hopp |
ca29de |
***************
|
|
Karsten Hopp |
ca29de |
*** 743,744 ****
|
|
Karsten Hopp |
ca29de |
--- 743,746 ----
|
|
Karsten Hopp |
ca29de |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ca29de |
+ /**/
|
|
Karsten Hopp |
ca29de |
+ 679,
|
|
Karsten Hopp |
ca29de |
/**/
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
--
|
|
Karsten Hopp |
ca29de |
ARTHUR: Did you say shrubberies?
|
|
Karsten Hopp |
ca29de |
ROGER: Yes. Shrubberies are my trade. I am a shrubber. My name is Roger
|
|
Karsten Hopp |
ca29de |
the Shrubber. I arrange, design, and sell shrubberies.
|
|
Karsten Hopp |
ca29de |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
ca29de |
|
|
Karsten Hopp |
ca29de |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ca29de |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ca29de |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ca29de |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|