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.060 < prev    next >
Encoding:
Internet Message Format  |  2001-10-31  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.060
  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.060
  11. Problem:    Motif: When the tooltip is to be popped up, Vim crashes.
  12.         (Gary Holloway)
  13. Solution:   Check for a NULL return value from gui_motif_fontset2fontlist().
  14. Files:        src/gui_beval.c
  15.  
  16.  
  17. *** ../vim60.59/src/gui_beval.c    Thu Sep 13 21:09:25 2001
  18. --- src/gui_beval.c    Wed Oct 24 14:12:09 2001
  19. ***************
  20. *** 148,154 ****
  21.   {
  22.       win_T    *wp;
  23.       int        row, col;
  24. -     int        i;
  25.       char_u    *lbuf;
  26.       linenr_T    lnum;
  27.   
  28. --- 148,153 ----
  29. ***************
  30. *** 431,438 ****
  31.           XmFontList fl;
  32.   
  33.           fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
  34. !         XmStringExtent(fl, s, &w, &h);
  35. !         XmFontListFree(fl);
  36.       }
  37.       w += gui.border_offset << 1;
  38.       h += gui.border_offset << 1;
  39. --- 430,440 ----
  40.           XmFontList fl;
  41.   
  42.           fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
  43. !         if (fl != NULL)
  44. !         {
  45. !         XmStringExtent(fl, s, &w, &h);
  46. !         XmFontListFree(fl);
  47. !         }
  48.       }
  49.       w += gui.border_offset << 1;
  50.       h += gui.border_offset << 1;
  51. *** ../vim60.59/src/version.c    Thu Nov  1 14:59:19 2001
  52. --- src/version.c    Thu Nov  1 15:02:52 2001
  53. ***************
  54. *** 608,609 ****
  55. --- 608,611 ----
  56.   {   /* Add new patch number below this line */
  57. + /**/
  58. +     60,
  59.   /**/
  60.  
  61. -- 
  62. SOLDIER: What? A swallow carrying a coconut?
  63. ARTHUR:  It could grip it by the husk ...
  64.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  65.  
  66.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  67. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  68.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  69.