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.243 < prev    next >
Encoding:
Internet Message Format  |  2002-02-20  |  3.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.243
  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.243
  11. Problem:    Unix: "vim --version" outputs a NL before the last line instead of
  12.             after it. (Charles Campbell)
  13. Solution:   Send the NL to the same output stream as the text.
  14. Files:      src/message.c, src/os_unix.c, src/proto/message.pro
  15.  
  16.  
  17. *** ../vim60.242/src/message.c    Mon Feb 18 12:08:34 2002
  18. --- src/message.c    Thu Feb 21 12:52:20 2002
  19. ***************
  20. *** 26,32 ****
  21.   #ifdef FEAT_MBYTE
  22.   static char_u *screen_puts_mbyte __ARGS((char_u *s, int l, int attr));
  23.   #endif
  24. - static int  msg_use_printf __ARGS((void));
  25.   static void msg_screen_putchar __ARGS((int c, int attr));
  26.   static int  msg_check_screen __ARGS((void));
  27.   static void redir_write __ARGS((char_u *s));
  28. --- 26,31 ----
  29. ***************
  30. *** 1809,1815 ****
  31.    * different, e.g. for Win32 console) or we just don't know where the
  32.    * cursor is.
  33.    */
  34. !     static int
  35.   msg_use_printf()
  36.   {
  37.       return (!msg_check_screen()
  38. --- 1808,1814 ----
  39.    * different, e.g. for Win32 console) or we just don't know where the
  40.    * cursor is.
  41.    */
  42. !     int
  43.   msg_use_printf()
  44.   {
  45.       return (!msg_check_screen()
  46. *** ../vim60.242/src/os_unix.c    Sun Feb 10 14:27:03 2002
  47. --- src/os_unix.c    Thu Feb 21 12:52:40 2002
  48. ***************
  49. *** 2340,2346 ****
  50.       if (!swapping_screen() || newline_on_exit)
  51.       {
  52.           if (newline_on_exit || msg_didout)
  53. !         out_char('\n');
  54.           else
  55.           {
  56.           restore_cterm_colors();    /* get original colors back */
  57. --- 2394,2411 ----
  58.       if (!swapping_screen() || newline_on_exit)
  59.       {
  60.           if (newline_on_exit || msg_didout)
  61. !         {
  62. !         /* Make sure the newline goes to the same stream as the text */
  63. !         if (msg_use_printf())
  64. !         {
  65. !             if (info_message)
  66. !             mch_msg("\r\n");
  67. !             else
  68. !             mch_errmsg("\r\n");
  69. !         }
  70. !         else
  71. !             out_char('\n');
  72. !         }
  73.           else
  74.           {
  75.           restore_cterm_colors();    /* get original colors back */
  76. *** ../vim60.242/src/proto/message.pro    Tue Sep 25 21:49:19 2001
  77. --- src/proto/message.pro    Thu Feb 21 12:52:09 2002
  78. ***************
  79. *** 35,40 ****
  80. --- 35,41 ----
  81.   void msg_puts_long_attr __ARGS((char_u *longstr, int attr));
  82.   void msg_puts_long_len_attr __ARGS((char_u *longstr, int len, int attr));
  83.   void msg_puts_attr __ARGS((char_u *s, int attr));
  84. + int msg_use_printf __ARGS((void));
  85.   void mch_errmsg __ARGS((char *str));
  86.   void mch_msg __ARGS((char *str));
  87.   void msg_moremsg __ARGS((int full));
  88. *** ../vim60.242/src/version.c    Thu Feb 21 12:32:53 2002
  89. --- src/version.c    Thu Feb 21 12:53:41 2002
  90. ***************
  91. *** 608,609 ****
  92. --- 608,611 ----
  93.   {   /* Add new patch number below this line */
  94. + /**/
  95. +     243,
  96.   /**/
  97.  
  98. -- 
  99. Managers are like cats in a litter box.  They instinctively shuffle things
  100. around to conceal what they've done.
  101.                 (Scott Adams - The Dilbert principle)
  102.  
  103.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  104. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  105. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  106.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  107.