mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
@@ -3017,7 +3017,7 @@ void do_sub(exarg_T *eap)
|
|||||||
// The number of lines joined is the number of lines in the range
|
// The number of lines joined is the number of lines in the range
|
||||||
linenr_T joined_lines_count = eap->line2 - eap->line1 + 1
|
linenr_T joined_lines_count = eap->line2 - eap->line1 + 1
|
||||||
// plus one extra line if not at the end of file.
|
// 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) {
|
if (joined_lines_count > 1) {
|
||||||
do_join(joined_lines_count, FALSE, TRUE, FALSE, true);
|
do_join(joined_lines_count, FALSE, TRUE, FALSE, true);
|
||||||
sub_nsubs = joined_lines_count - 1;
|
sub_nsubs = joined_lines_count - 1;
|
||||||
|
Reference in New Issue
Block a user