aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-07 01:13:51 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-07 09:25:51 +0100
commit35a789278128bfe5d28e4c61ac7fa727042fd30a (patch)
treed41bd3f486d87842fa65108a072de465e2dee4bf /src/nvim/os/shell.c
parented37136c5c85fbcbf98a071330025b3b0edbd065 (diff)
downloadrneovim-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.c8
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;
}