Merge pull request #17226 from dundargoc/refactor/remove-redundant-code

vim-patch:8.2.4241: some type casts are redundant
This commit is contained in:
zeertzjq
2022-02-03 20:47:29 +08:00
committed by GitHub
16 changed files with 46 additions and 58 deletions

View File

@@ -381,8 +381,8 @@ static void shift_block(oparg_T *oap, int amount)
}
}
for (; ascii_iswhite(*bd.textstart);) {
// TODO: is passing bd.textstart for start of the line OK?
incr = lbr_chartabsize_adv(bd.textstart, &bd.textstart, (bd.start_vcol));
// TODO(fmoralesc): is passing bd.textstart for start of the line OK?
incr = lbr_chartabsize_adv(bd.textstart, &bd.textstart, bd.start_vcol);
total += incr;
bd.start_vcol += incr;
}
@@ -2789,8 +2789,6 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append)
curbuf->b_op_end.col = MAXCOL;
}
}
return;
}
// Copy a block range into a register.