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.2.274 < prev    next >
Encoding:
Internet Message Format  |  2004-02-18  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.274
  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.2.274
  11. Problem:    ":print" skips empty lines when 'list' is set and there is no
  12.         "eol" in 'listchars'. (Yakov Lerner)
  13. Solution:   Skip outputting a space for an empty line only when 'list' is set
  14.         and the end-of-line character is not empty.
  15. Files:        src/message.c
  16.  
  17.  
  18. *** ../vim-6.2.273/src/message.c    Tue Feb 17 20:44:14 2004
  19. --- src/message.c    Wed Feb 18 10:56:09 2004
  20. ***************
  21. *** 1435,1441 ****
  22.   
  23.       /* output a space for an empty line, otherwise the line will be
  24.        * overwritten */
  25. !     if (*s == NUL && !curwin->w_p_list)
  26.       msg_putchar(' ');
  27.   
  28.       for (;;)
  29. --- 1435,1441 ----
  30.   
  31.       /* output a space for an empty line, otherwise the line will be
  32.        * overwritten */
  33. !     if (*s == NUL && !(curwin->w_p_list && lcs_eol != NUL))
  34.       msg_putchar(' ');
  35.   
  36.       for (;;)
  37. ***************
  38. *** 1479,1485 ****
  39.               attr = hl_attr(HLF_8);
  40.           }
  41.           }
  42. !         else if (c == NUL && curwin->w_p_list && lcs_eol)
  43.           {
  44.           p_extra = (char_u *)"";
  45.           c_extra = NUL;
  46. --- 1479,1485 ----
  47.               attr = hl_attr(HLF_8);
  48.           }
  49.           }
  50. !         else if (c == NUL && curwin->w_p_list && lcs_eol != NUL)
  51.           {
  52.           p_extra = (char_u *)"";
  53.           c_extra = NUL;
  54. *** ../vim-6.2.273/src/version.c    Thu Feb 19 15:11:20 2004
  55. --- src/version.c    Thu Feb 19 15:12:09 2004
  56. ***************
  57. *** 639,640 ****
  58. --- 639,642 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     274,
  62.   /**/
  63.  
  64. -- 
  65. hundred-and-one symptoms of being an internet addict:
  66. 188. You purchase a laptop so you can surf while sitting on the can.
  67.  
  68.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  69. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  70. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  71.  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
  72.