mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 15:14:04 +00:00
@@ -1795,10 +1795,11 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
|
||||
if (oap->line_count < 2)
|
||||
oap->line_count = 2;
|
||||
if (curwin->w_cursor.lnum + oap->line_count - 1 >
|
||||
curbuf->b_ml.ml_line_count)
|
||||
curbuf->b_ml.ml_line_count) {
|
||||
beep_flush();
|
||||
else {
|
||||
do_join(oap->line_count, oap->op_type == OP_JOIN, true, true, true);
|
||||
} else {
|
||||
do_join((size_t)oap->line_count, oap->op_type == OP_JOIN,
|
||||
true, true, true);
|
||||
auto_format(false, true);
|
||||
}
|
||||
break;
|
||||
@@ -7666,7 +7667,7 @@ static void nv_join(cmdarg_T *cap)
|
||||
|
||||
prep_redo(cap->oap->regname, cap->count0,
|
||||
NUL, cap->cmdchar, NUL, NUL, cap->nchar);
|
||||
do_join(cap->count0, cap->nchar == NUL, true, true, true);
|
||||
do_join((size_t)cap->count0, cap->nchar == NUL, true, true, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user