mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
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:
@@ -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);
|
||||
}
|
||||
@@ -6328,7 +6328,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());
|
||||
@@ -6338,8 +6338,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
|
||||
|
Reference in New Issue
Block a user