Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.237
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.237
Karsten Hopp 81c285
Problem:    Crash on exit when window icon not set.
Karsten Hopp 81c285
Solution:   Copy terminal name when using it for the icon name.
Karsten Hopp 81c285
Files:	    src/os_unix.c
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.236/src/os_unix.c	2009-07-14 17:38:51.000000000 +0200
Karsten Hopp 81c285
--- src/os_unix.c	2009-07-14 18:30:04.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1734,1742 ****
Karsten Hopp 81c285
      if (oldicon == NULL && !test_only)
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
  	if (STRNCMP(T_NAME, "builtin_", 8) == 0)
Karsten Hopp 81c285
! 	    oldicon = T_NAME + 8;
Karsten Hopp 81c285
  	else
Karsten Hopp 81c285
! 	    oldicon = T_NAME;
Karsten Hopp 81c285
      }
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      return retval;
Karsten Hopp 81c285
--- 1734,1742 ----
Karsten Hopp 81c285
      if (oldicon == NULL && !test_only)
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
  	if (STRNCMP(T_NAME, "builtin_", 8) == 0)
Karsten Hopp 81c285
! 	    oldicon = vim_strsave(T_NAME + 8);
Karsten Hopp 81c285
  	else
Karsten Hopp 81c285
! 	    oldicon = vim_strsave(T_NAME);
Karsten Hopp 81c285
      }
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      return retval;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1939,1947 ****
Karsten Hopp 81c285
      if (!test_only)
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
  	if (STRNCMP(T_NAME, "builtin_", 8) == 0)
Karsten Hopp 81c285
! 	    oldicon = T_NAME + 8;
Karsten Hopp 81c285
  	else
Karsten Hopp 81c285
! 	    oldicon = T_NAME;
Karsten Hopp 81c285
      }
Karsten Hopp 81c285
      return FALSE;
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
--- 1939,1947 ----
Karsten Hopp 81c285
      if (!test_only)
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
  	if (STRNCMP(T_NAME, "builtin_", 8) == 0)
Karsten Hopp 81c285
! 	    oldicon = vim_strsave(T_NAME + 8);
Karsten Hopp 81c285
  	else
Karsten Hopp 81c285
! 	    oldicon = vim_strsave(T_NAME);
Karsten Hopp 81c285
      }
Karsten Hopp 81c285
      return FALSE;
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
*** ../vim-7.2.236/src/version.c	2009-07-22 11:16:54.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-07-22 13:26:30.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     237,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
Common sense is what tells you that the world is flat.
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///