diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-07 01:13:51 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-07 09:25:51 +0100 |
commit | 35a789278128bfe5d28e4c61ac7fa727042fd30a (patch) | |
tree | d41bd3f486d87842fa65108a072de465e2dee4bf /src/nvim/os/shell.c | |
parent | ed37136c5c85fbcbf98a071330025b3b0edbd065 (diff) | |
download | rneovim-35a789278128bfe5d28e4c61ac7fa727042fd30a.tar.gz rneovim-35a789278128bfe5d28e4c61ac7fa727042fd30a.tar.bz2 rneovim-35a789278128bfe5d28e4c61ac7fa727042fd30a.zip |
lint, minor cleanup
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 11e6a76939..5b3cb64a4d 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -576,14 +576,10 @@ static void read_input(DynamicBuffer *buf) if (len == l) { // Finished a line, add a NL, unless this line should not have one. - // FIXME need to make this more readable if (lnum != curbuf->b_op_end.lnum - || (!curbuf->b_p_bin - && curbuf->b_p_fixeol) + || (!curbuf->b_p_bin && curbuf->b_p_fixeol) || (lnum != curbuf->b_no_eol_lnum - && (lnum != - curbuf->b_ml.ml_line_count - || curbuf->b_p_eol))) { + && (lnum != curbuf->b_ml.ml_line_count || curbuf->b_p_eol))) { dynamic_buffer_ensure(buf, buf->len + 1); buf->data[buf->len++] = NL; } |