aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-01-28 22:54:03 +0100
committerDundar Göc <gocdundar@gmail.com>2022-01-30 19:16:51 +0100
commit2793fcae0ac2aef14c8f22636d579c68a97c0851 (patch)
tree5cddb34fa2afee8587a11aa5b431b7859b451536 /src/nvim/normal.c
parent46bd48f7e902250dbccdea71ec6eb3888588133f (diff)
downloadrneovim-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/normal.c')
-rw-r--r--src/nvim/normal.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 28e5d47dbc..997d5ca396 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -1030,7 +1030,7 @@ static int normal_execute(VimState *state, int key)
s->need_flushbuf = add_to_showcmd(s->c);
- while (normal_get_command_count(s)) { continue; }
+ while (normal_get_command_count(s)) { }
if (s->c == K_EVENT) {
// Save the count values so that ca.opcount and ca.count0 are exactly
@@ -4093,7 +4093,7 @@ static void nv_colon(cmdarg_T *cap)
if (is_lua) {
cmd_result = map_execute_lua();
} else {
- // get a command line and execute it
+ // get a command line and execute it
cmd_result = do_cmdline(NULL, is_cmdkey ? getcmdkeycmd : getexline, NULL,
cap->oap->op_type != OP_NOP ? DOCMD_KEEPLINE : 0);
}
@@ -6330,7 +6330,7 @@ static void nv_g_cmd(cmdarg_T *cap)
curwin->w_set_curswant = true;
break;
- case 'M': {
+ case 'M':
oap->motion_type = kMTCharWise;
oap->inclusive = false;
i = linetabsize(get_cursor_line_ptr());
@@ -6340,8 +6340,7 @@ static void nv_g_cmd(cmdarg_T *cap)
coladvance((colnr_T)(i / 2));
}
curwin->w_set_curswant = true;
- }
- break;
+ break;
case '_':
/* "g_": to the last non-blank character in the line or <count> lines