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.1.376 < prev    next >
Encoding:
Internet Message Format  |  2003-03-08  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.376
  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.1.376
  11. Problem:    "vim --version" and "vim --help" have a non-zero exit code.
  12.         That is unusual. (Petesea)
  13. Solution:   Use a zero exit code.
  14. Files:        src/main.c
  15.  
  16.  
  17. *** ../vim61.375/src/main.c    Sat Mar  8 20:33:32 2003
  18. --- src/main.c    Fri Feb 28 17:06:54 2003
  19. ***************
  20. *** 551,557 ****
  21.               Columns = 80;    /* need to init Columns */
  22.               info_message = TRUE; /* use mch_msg(), not mch_errmsg() */
  23.               list_version();
  24. !             mch_exit(1);
  25.           }
  26.           else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
  27.           {
  28. --- 551,557 ----
  29.               Columns = 80;    /* need to init Columns */
  30.               info_message = TRUE; /* use mch_msg(), not mch_errmsg() */
  31.               list_version();
  32. !             mch_exit(0);
  33.           }
  34.           else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
  35.           {
  36. ***************
  37. *** 2460,2466 ****
  38.       main_msg(_("--help\t\tShow Gnome arguments"));
  39.   # endif
  40.   #endif
  41. !     mch_exit(1);
  42.   }
  43.   
  44.   #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
  45. --- 2460,2466 ----
  46.       main_msg(_("--help\t\tShow Gnome arguments"));
  47.   # endif
  48.   #endif
  49. !     mch_exit(0);
  50.   }
  51.   
  52.   #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
  53. *** ../vim61.375/src/version.c    Sun Mar  9 15:11:38 2003
  54. --- src/version.c    Sun Mar  9 15:12:53 2003
  55. ***************
  56. *** 613,614 ****
  57. --- 613,616 ----
  58.   {   /* Add new patch number below this line */
  59. + /**/
  60. +     376,
  61.   /**/
  62.  
  63. -- 
  64. You have heard the saying that if you put a thousand monkeys in a room with a
  65. thousand typewriters and waited long enough, eventually you would have a room
  66. full of dead monkeys.
  67.                 (Scott Adams - The Dilbert principle)
  68.  
  69.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  70. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  71. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  72.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  73.