|
Karsten Hopp |
a2e699 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
a2e699 |
Subject: Patch 7.1.225
|
|
Karsten Hopp |
a2e699 |
Fcc: outbox
|
|
Karsten Hopp |
a2e699 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a2e699 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a2e699 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
a2e699 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a2e699 |
------------
|
|
Karsten Hopp |
a2e699 |
|
|
Karsten Hopp |
a2e699 |
Patch 7.1.225
|
|
Karsten Hopp |
a2e699 |
Problem: Using unitialized value when XGetWMNormalHints() fails.
|
|
Karsten Hopp |
a2e699 |
Solution: Check the return value. (Dominique Pelle)
|
|
Karsten Hopp |
a2e699 |
Files: src/os_unix.c
|
|
Karsten Hopp |
a2e699 |
|
|
Karsten Hopp |
a2e699 |
|
|
Karsten Hopp |
a2e699 |
*** ../vim-7.1.224/src/os_unix.c Sun Jan 13 13:53:30 2008
|
|
Karsten Hopp |
a2e699 |
--- src/os_unix.c Sun Jan 13 13:52:53 2008
|
|
Karsten Hopp |
a2e699 |
***************
|
|
Karsten Hopp |
a2e699 |
*** 6145,6153 ****
|
|
Karsten Hopp |
a2e699 |
if (xterm_trace == 1)
|
|
Karsten Hopp |
a2e699 |
{
|
|
Karsten Hopp |
a2e699 |
/* Get the hints just before tracking starts. The font size might
|
|
Karsten Hopp |
a2e699 |
! * have changed recently */
|
|
Karsten Hopp |
a2e699 |
! XGetWMNormalHints(xterm_dpy, x11_window, &xterm_hints, &got_hints);
|
|
Karsten Hopp |
a2e699 |
! if (!(got_hints & PResizeInc)
|
|
Karsten Hopp |
a2e699 |
|| xterm_hints.width_inc <= 1
|
|
Karsten Hopp |
a2e699 |
|| xterm_hints.height_inc <= 1)
|
|
Karsten Hopp |
a2e699 |
{
|
|
Karsten Hopp |
a2e699 |
--- 6145,6153 ----
|
|
Karsten Hopp |
a2e699 |
if (xterm_trace == 1)
|
|
Karsten Hopp |
a2e699 |
{
|
|
Karsten Hopp |
a2e699 |
/* Get the hints just before tracking starts. The font size might
|
|
Karsten Hopp |
a2e699 |
! * have changed recently. */
|
|
Karsten Hopp |
a2e699 |
! if (!XGetWMNormalHints(xterm_dpy, x11_window, &xterm_hints, &got_hints)
|
|
Karsten Hopp |
a2e699 |
! || !(got_hints & PResizeInc)
|
|
Karsten Hopp |
a2e699 |
|| xterm_hints.width_inc <= 1
|
|
Karsten Hopp |
a2e699 |
|| xterm_hints.height_inc <= 1)
|
|
Karsten Hopp |
a2e699 |
{
|
|
Karsten Hopp |
a2e699 |
*** ../vim-7.1.224/src/version.c Sun Jan 13 16:17:02 2008
|
|
Karsten Hopp |
a2e699 |
--- src/version.c Sun Jan 13 16:29:51 2008
|
|
Karsten Hopp |
a2e699 |
***************
|
|
Karsten Hopp |
a2e699 |
*** 668,669 ****
|
|
Karsten Hopp |
a2e699 |
--- 668,671 ----
|
|
Karsten Hopp |
a2e699 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a2e699 |
+ /**/
|
|
Karsten Hopp |
a2e699 |
+ 225,
|
|
Karsten Hopp |
a2e699 |
/**/
|
|
Karsten Hopp |
a2e699 |
|
|
Karsten Hopp |
a2e699 |
--
|
|
Karsten Hopp |
a2e699 |
"When I die, I want a tombstone that says "GAME OVER" - Ton Richters
|
|
Karsten Hopp |
a2e699 |
|
|
Karsten Hopp |
a2e699 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a2e699 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a2e699 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
a2e699 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|