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 / old / 5.5.059 < prev    next >
Encoding:
Internet Message Format  |  1999-12-05  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 5.5.059
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.5.059
  8. Problem:    GTK GUI: When $term is invalid, using "gvim" gives an error
  9.         message, even though $term isn't really used.  (Robbins)
  10. Solution:   When the GUI is about to start, skip the error messages for a
  11.         wrong $term.
  12. Files:        src/term.c
  13.  
  14.  
  15. *** ../vim-5.5.58/src/term.c    Wed Sep 22 10:06:29 1999
  16. --- src/term.c    Mon Dec  6 19:33:45 1999
  17. ***************
  18. *** 1470,1475 ****
  19. --- 1470,1484 ----
  20.               break;
  21.   #endif
  22.   
  23. + #ifdef USE_GUI_GTK
  24. +         /*
  25. +          * Skip the error message when the GUI is about to start.  Can
  26. +          * happen when using GTK version of gvim when $term is
  27. +          * invalid.
  28. +          */
  29. +         if (!gui.starting)
  30. +         {
  31. + #endif
  32.           mch_errmsg("\r\n");
  33.           if (error_msg != NULL)
  34.           {
  35. ***************
  36. *** 1493,1498 ****
  37. --- 1502,1510 ----
  38.               mch_errmsg("\r\n");
  39.               }
  40.           }
  41. + #ifdef USE_GUI_GTK
  42. +         }
  43. + #endif
  44.           /* when user typed :set term=xxx, quit here */
  45.           if (starting != NO_SCREEN)
  46.           {
  47. ***************
  48. *** 1501,1514 ****
  49.               return FAIL;
  50.           }
  51.           term = DEFAULT_TERM;
  52.           mch_errmsg("defaulting to '");
  53.           mch_errmsg((char *)term);
  54.           mch_errmsg("'\r\n");
  55.           screen_start();        /* don't know where cursor is now */
  56.           out_flush();
  57.           ui_delay(2000L, TRUE);
  58.           set_string_option_direct((char_u *)"term", -1, term, TRUE);
  59. !         mch_display_error();
  60.           }
  61.           out_flush();
  62.   #ifdef HAVE_TGETENT
  63. --- 1513,1536 ----
  64.               return FAIL;
  65.           }
  66.           term = DEFAULT_TERM;
  67. + #ifdef USE_GUI_GTK
  68. +         if (!gui.starting)
  69. +         {
  70. + #endif
  71.           mch_errmsg("defaulting to '");
  72.           mch_errmsg((char *)term);
  73.           mch_errmsg("'\r\n");
  74.           screen_start();        /* don't know where cursor is now */
  75.           out_flush();
  76.           ui_delay(2000L, TRUE);
  77. + #ifdef USE_GUI_GTK
  78. +         }
  79. + #endif
  80.           set_string_option_direct((char_u *)"term", -1, term, TRUE);
  81. ! #ifdef USE_GUI_GTK
  82. !         if (!gui.starting)
  83. ! #endif
  84. !             mch_display_error();
  85.           }
  86.           out_flush();
  87.   #ifdef HAVE_TGETENT
  88. *** ../vim-5.5.58/src/version.c    Mon Dec  6 19:39:24 1999
  89. --- src/version.c    Mon Dec  6 19:39:03 1999
  90. ***************
  91. *** 420,420 ****
  92. --- 420,421 ----
  93.   {   /* Add new patch number below this line */
  94. +     59,
  95.  
  96. -- 
  97. ARTHUR: This new learning amazes me, Sir Bedevere.  Explain again how sheep's
  98.         bladders may be employed to prevent earthquakes.
  99.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  100.  
  101. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  102.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  103.