diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-01-28 22:54:03 +0100 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-01-30 19:16:51 +0100 |
commit | 2793fcae0ac2aef14c8f22636d579c68a97c0851 (patch) | |
tree | 5cddb34fa2afee8587a11aa5b431b7859b451536 /src/nvim/ops.c | |
parent | 46bd48f7e902250dbccdea71ec6eb3888588133f (diff) | |
download | rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.tar.gz rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.tar.bz2 rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.zip |
vim-patch:8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes vim/vim#9643)
https://github.com/vim/vim/commit/420fabcd4ffeaf79082a6e43db91e1d363f88f27
This is not a literal port but an equivalent one.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 83a7c31991..0fbaf6431a 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -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. |