home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.260 < prev    next >
Encoding:
Internet Message Format  |  2002-02-21  |  3.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.260
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.260
  11. Problem:    GUI: May crash while starting up when giving an error message for
  12.         missing color. (Servatius Brandt)
  13. Solution:   Don't call gui_write() when still starting up.  Don't give error
  14.         message for empty color name.  Don't use 't_vb' while the GUI is
  15.         still starting up.
  16. Files:        src/fileio.c, src/gui.c, src/misc1.c, src/ui.c
  17.  
  18.  
  19. *** ../vim60.259/src/fileio.c    Thu Feb 21 21:49:21 2002
  20. --- src/fileio.c    Fri Feb 22 12:21:37 2002
  21. ***************
  22. *** 654,660 ****
  23.   #endif
  24.   #ifdef FEAT_GUI
  25.           /* Also write a message in the GUI window, if there is one. */
  26. !         if (gui.in_use)
  27.           {
  28.           p = (char_u *)_("Reading from stdin...");
  29.           gui_write(p, (int)STRLEN(p));
  30. --- 658,664 ----
  31.   #endif
  32.   #ifdef FEAT_GUI
  33.           /* Also write a message in the GUI window, if there is one. */
  34. !         if (gui.in_use && !gui.dying && !gui.starting)
  35.           {
  36.           p = (char_u *)_("Reading from stdin...");
  37.           gui_write(p, (int)STRLEN(p));
  38. *** ../vim60.259/src/gui.c    Thu Feb 21 21:19:59 2002
  39. --- src/gui.c    Fri Feb 22 12:27:02 2002
  40. ***************
  41. *** 3687,3692 ****
  42. --- 3687,3694 ----
  43.   {
  44.       guicolor_T    t;
  45.   
  46. +     if (*name == NUL)
  47. +     return (guicolor_T)-1;
  48.       t = gui_mch_get_color(name);
  49.       if (t < 0
  50.   #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK)
  51. *** ../vim60.259/src/misc1.c    Mon Feb 18 17:18:18 2002
  52. --- src/misc1.c    Fri Feb 22 12:26:10 2002
  53. ***************
  54. *** 2725,2731 ****
  55.   {
  56.       if (emsg_silent == 0)
  57.       {
  58. !     if (p_vb)
  59.       {
  60.           out_str(T_VB);
  61.       }
  62. --- 2725,2737 ----
  63.   {
  64.       if (emsg_silent == 0)
  65.       {
  66. !     if (p_vb
  67. ! #ifdef FEAT_GUI
  68. !         /* While the GUI is starting up the termcap is set for the GUI
  69. !          * but the output still goes to a terminal. */
  70. !         && !(gui.in_use && gui.starting)
  71. ! #endif
  72. !         )
  73.       {
  74.           out_str(T_VB);
  75.       }
  76. *** ../vim60.259/src/ui.c    Mon Feb 11 15:45:47 2002
  77. --- src/ui.c    Fri Feb 22 12:16:49 2002
  78. ***************
  79. *** 24,30 ****
  80.       int        len;
  81.   {
  82.   #ifdef FEAT_GUI
  83. !     if (gui.in_use && !gui.dying)
  84.       {
  85.       gui_write(s, len);
  86.       if (p_wd)
  87. --- 24,30 ----
  88.       int        len;
  89.   {
  90.   #ifdef FEAT_GUI
  91. !     if (gui.in_use && !gui.dying && !gui.starting)
  92.       {
  93.       gui_write(s, len);
  94.       if (p_wd)
  95. *** ../vim60.259/src/version.c    Fri Feb 22 11:18:37 2002
  96. --- src/version.c    Fri Feb 22 12:30:06 2002
  97. ***************
  98. *** 608,609 ****
  99. --- 608,611 ----
  100.   {   /* Add new patch number below this line */
  101. + /**/
  102. +     260,
  103.   /**/
  104.  
  105. -- 
  106. I think that you'll agree that engineers are very effective in their social
  107. interactions.  It's the "normal" people who are nuts.
  108.                 (Scott Adams - The Dilbert principle)
  109.  
  110.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  111. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  112. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  113.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  114.