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.135 < prev    next >
Encoding:
Internet Message Format  |  2002-07-20  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.135
  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.135
  11. Problem:    Passing a command to the shell that includes a newline always has
  12.         a backslash before the newline.
  13. Solution:   Remove one backslash before the newline.  (Servatius Brandt)
  14. Files:        src/ex_docmd.c
  15.  
  16.  
  17. *** ../vim61.134/src/ex_docmd.c    Sun Jul 21 21:02:08 2002
  18. --- src/ex_docmd.c    Thu Jul 18 20:44:49 2002
  19. ***************
  20. *** 1648,1655 ****
  21.       {
  22.       for (p = ea.arg; *p; ++p)
  23.       {
  24. !         if (*p == '\\' && p[1])
  25. !         ++p;
  26.           else if (*p == '\n')
  27.           {
  28.           ea.nextcmd = p + 1;
  29. --- 1648,1661 ----
  30.       {
  31.       for (p = ea.arg; *p; ++p)
  32.       {
  33. !         /* Remove one backslash before a newline, so that it's possible to
  34. !          * pass a newline to the shell and also a newline that is preceded
  35. !          * with a backslash.  This makes it impossible to end a shell
  36. !          * command in a backslash, but that doesn't appear useful.
  37. !          * Halving the number of backslashes is incompatible with previous
  38. !          * versions. */
  39. !         if (*p == '\\' && p[1] == '\n')
  40. !         mch_memmove(p, p + 1, STRLEN(p));
  41.           else if (*p == '\n')
  42.           {
  43.           ea.nextcmd = p + 1;
  44. *** ../vim61.134/src/version.c    Sun Jul 21 21:02:08 2002
  45. --- src/version.c    Sun Jul 21 21:03:39 2002
  46. ***************
  47. *** 608,609 ****
  48. --- 608,611 ----
  49.   {   /* Add new patch number below this line */
  50. + /**/
  51. +     135,
  52.   /**/
  53.  
  54. -- 
  55. hundred-and-one symptoms of being an internet addict:
  56. 16. You step out of your room and realize that your parents have moved and
  57.     you don't have a clue when it happened.
  58.  
  59.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  60. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  61. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  62.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  63.