diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-21 23:48:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-21 23:48:43 +0200 |
| commit | 565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e (patch) | |
| tree | 59350b8f5cc04debb154711181138880338a42d8 /src/nvim/ex_cmds.c | |
| parent | 25bc65698860b8713ef83e32015c0fd43247ebb4 (diff) | |
| parent | 11ae6f418d6c8b62ea328e90a0ada3aff1ab9979 (diff) | |
| download | rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.tar.gz rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.tar.bz2 rneovim-565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e.zip | |
Merge #9146 from justinmk/fix-warnings
Diffstat (limited to 'src/nvim/ex_cmds.c')
| -rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index bce0c35f67..99f8963dad 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3299,7 +3299,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout, endcolumn = (curwin->w_curswant == MAXCOL); } - if (sub_joining_lines(eap, pat, sub, cmd, !preview)) { + if (sub != NULL && sub_joining_lines(eap, pat, sub, cmd, !preview)) { return NULL; } |
