aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-07 09:57:23 +0100
committerGitHub <noreply@github.com>2018-02-07 09:57:23 +0100
commit366528130e397a6173789072c08b9afa5efd0423 (patch)
treed41bd3f486d87842fa65108a072de465e2dee4bf /src/nvim/os/shell.c
parent538361955d123d9c93387f7597303c0ef59c6825 (diff)
parent35a789278128bfe5d28e4c61ac7fa727042fd30a (diff)
downloadrneovim-366528130e397a6173789072c08b9afa5efd0423.tar.gz
rneovim-366528130e397a6173789072c08b9afa5efd0423.tar.bz2
rneovim-366528130e397a6173789072c08b9afa5efd0423.zip
Merge #6713 'tests for :! output'
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;
}