mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
PVS/V1028: cast operands, not the result
This commit is contained in:
@@ -3393,14 +3393,11 @@ void cmdline_paste_str(char_u *s, int literally)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Delete characters on the command line, from "from" to the current
|
||||
* position.
|
||||
*/
|
||||
/// Delete characters on the command line, from "from" to the current position.
|
||||
static void cmdline_del(int from)
|
||||
{
|
||||
memmove(ccline.cmdbuff + from, ccline.cmdbuff + ccline.cmdpos,
|
||||
(size_t)(ccline.cmdlen - ccline.cmdpos + 1));
|
||||
(size_t)ccline.cmdlen - ccline.cmdpos + 1);
|
||||
ccline.cmdlen -= ccline.cmdpos - from;
|
||||
ccline.cmdpos = from;
|
||||
}
|
||||
@@ -3661,8 +3658,8 @@ nextwild (
|
||||
xp->xp_pattern = ccline.cmdbuff + i;
|
||||
}
|
||||
memmove(&ccline.cmdbuff[ccline.cmdpos + difflen],
|
||||
&ccline.cmdbuff[ccline.cmdpos],
|
||||
(size_t)(ccline.cmdlen - ccline.cmdpos + 1));
|
||||
&ccline.cmdbuff[ccline.cmdpos],
|
||||
(size_t)ccline.cmdlen - ccline.cmdpos + 1);
|
||||
memmove(&ccline.cmdbuff[i], p2, STRLEN(p2));
|
||||
ccline.cmdlen += difflen;
|
||||
ccline.cmdpos += difflen;
|
||||
|
Reference in New Issue
Block a user