mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.245
Problem: Crash for "vim -u NONE -N -c '&&'". Solution: Check for the pattern to be NULL. (Dominique Pelle) https://code.google.com/p/vim/source/detail?r=80421d934ebde183ce545ab8d9eb3a4c2065c169
This commit is contained in:
parent
85b5a75a69
commit
ca4005d759
@ -3661,8 +3661,8 @@ void do_sub(exarg_T *eap)
|
|||||||
// more efficient.
|
// more efficient.
|
||||||
// TODO: find a generic solution to make line-joining operations more
|
// TODO: find a generic solution to make line-joining operations more
|
||||||
// efficient, avoid allocating a string that grows in size.
|
// efficient, avoid allocating a string that grows in size.
|
||||||
if (strcmp((const char *)pat, "\\n") == 0
|
if (pat != NULL
|
||||||
&& strlen((const char *)pat) == 2
|
&& strcmp((const char *)pat, "\\n") == 0
|
||||||
&& *sub == NUL
|
&& *sub == NUL
|
||||||
&& (*cmd == NUL || (cmd[1] == NUL
|
&& (*cmd == NUL || (cmd[1] == NUL
|
||||||
&& (*cmd == 'g'
|
&& (*cmd == 'g'
|
||||||
|
@ -215,7 +215,7 @@ static int included_patches[] = {
|
|||||||
//248,
|
//248,
|
||||||
//247,
|
//247,
|
||||||
//246,
|
//246,
|
||||||
//245,
|
245,
|
||||||
//244,
|
//244,
|
||||||
//243,
|
//243,
|
||||||
//242,
|
//242,
|
||||||
|
Loading…
Reference in New Issue
Block a user