|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.245
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.245
|
|
|
22c937 |
Problem: Crash for "vim -u NONE -N -c '&&'".
|
|
|
22c937 |
Solution: Check for the pattern to be NULL. (Dominique Pelle)
|
|
|
22c937 |
Files: src/ex_cmds.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.244/src/ex_cmds.c 2014-04-01 17:49:40.136891378 +0200
|
|
|
22c937 |
--- src/ex_cmds.c 2014-04-04 18:56:00.159939544 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 4425,4431 ****
|
|
|
22c937 |
* TODO: find a generic solution to make line-joining operations more
|
|
|
22c937 |
* efficient, avoid allocating a string that grows in size.
|
|
|
22c937 |
*/
|
|
|
22c937 |
! if (STRCMP(pat, "\\n") == 0 && STRLEN(pat) == 2
|
|
|
22c937 |
&& *sub == NUL
|
|
|
22c937 |
&& (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
|
|
|
22c937 |
|| *cmd == 'p' || *cmd == '#'))))
|
|
|
22c937 |
--- 4425,4431 ----
|
|
|
22c937 |
* TODO: find a generic solution to make line-joining operations more
|
|
|
22c937 |
* efficient, avoid allocating a string that grows in size.
|
|
|
22c937 |
*/
|
|
|
22c937 |
! if (pat != NULL && STRCMP(pat, "\\n") == 0
|
|
|
22c937 |
&& *sub == NUL
|
|
|
22c937 |
&& (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
|
|
|
22c937 |
|| *cmd == 'p' || *cmd == '#'))))
|
|
|
22c937 |
*** ../vim-7.4.244/src/version.c 2014-04-02 23:09:23.003439001 +0200
|
|
|
22c937 |
--- src/version.c 2014-04-04 18:52:21.519939067 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 736,737 ****
|
|
|
22c937 |
--- 736,739 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 245,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
One difference between a man and a machine is that a machine is quiet
|
|
|
22c937 |
when well oiled.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|