home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.135
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.135
- Problem: Passing a command to the shell that includes a newline always has
- a backslash before the newline.
- Solution: Remove one backslash before the newline. (Servatius Brandt)
- Files: src/ex_docmd.c
-
-
- *** ../vim61.134/src/ex_docmd.c Sun Jul 21 21:02:08 2002
- --- src/ex_docmd.c Thu Jul 18 20:44:49 2002
- ***************
- *** 1648,1655 ****
- {
- for (p = ea.arg; *p; ++p)
- {
- ! if (*p == '\\' && p[1])
- ! ++p;
- else if (*p == '\n')
- {
- ea.nextcmd = p + 1;
- --- 1648,1661 ----
- {
- for (p = ea.arg; *p; ++p)
- {
- ! /* Remove one backslash before a newline, so that it's possible to
- ! * pass a newline to the shell and also a newline that is preceded
- ! * with a backslash. This makes it impossible to end a shell
- ! * command in a backslash, but that doesn't appear useful.
- ! * Halving the number of backslashes is incompatible with previous
- ! * versions. */
- ! if (*p == '\\' && p[1] == '\n')
- ! mch_memmove(p, p + 1, STRLEN(p));
- else if (*p == '\n')
- {
- ea.nextcmd = p + 1;
- *** ../vim61.134/src/version.c Sun Jul 21 21:02:08 2002
- --- src/version.c Sun Jul 21 21:03:39 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 135,
- /**/
-
- --
- hundred-and-one symptoms of being an internet addict:
- 16. You step out of your room and realize that your parents have moved and
- you don't have a clue when it happened.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
-