diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-03-01 02:06:04 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-03-01 02:06:05 +0100 |
commit | 2ee37cc2858aa68f5ca0440ed017bde112ffdec7 (patch) | |
tree | b0843895cd190a48225964cdbae78c72369bfda2 | |
parent | 888b8abeb0ceaceaec64118112be3521b2a36b93 (diff) | |
download | rneovim-2ee37cc2858aa68f5ca0440ed017bde112ffdec7.tar.gz rneovim-2ee37cc2858aa68f5ca0440ed017bde112ffdec7.tar.bz2 rneovim-2ee37cc2858aa68f5ca0440ed017bde112ffdec7.zip |
Fix :%s/\n//
Fixes #4352.
-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 ad21e71c51..96a7c8c5af 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3017,7 +3017,7 @@ void do_sub(exarg_T *eap) // The number of lines joined is the number of lines in the range linenr_T joined_lines_count = eap->line2 - eap->line1 + 1 // plus one extra line if not at the end of file. - + eap->line2 < curbuf->b_ml.ml_line_count ? 1 : 0; + + (eap->line2 < curbuf->b_ml.ml_line_count ? 1 : 0); if (joined_lines_count > 1) { do_join(joined_lines_count, FALSE, TRUE, FALSE, true); sub_nsubs = joined_lines_count - 1; |