mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:8.1.2411: function argument copied unnecessarily
Problem: Function argument copied unnecessarily.
Solution: Use the argument directly.
1b03a193b3
This commit is contained in:
@@ -3730,14 +3730,13 @@ char_u *skip_range(
|
|||||||
// Return MAXLNUM when no Ex address was found.
|
// Return MAXLNUM when no Ex address was found.
|
||||||
static linenr_T get_address(exarg_T *eap,
|
static linenr_T get_address(exarg_T *eap,
|
||||||
char_u **ptr,
|
char_u **ptr,
|
||||||
cmd_addr_T addr_type_arg,
|
cmd_addr_T addr_type,
|
||||||
int skip, // only skip the address, don't use it
|
int skip, // only skip the address, don't use it
|
||||||
bool silent, // no errors or side effects
|
bool silent, // no errors or side effects
|
||||||
int to_other_file, // flag: may jump to other file
|
int to_other_file, // flag: may jump to other file
|
||||||
int address_count) // 1 for first, >1 after comma
|
int address_count) // 1 for first, >1 after comma
|
||||||
FUNC_ATTR_NONNULL_ALL
|
FUNC_ATTR_NONNULL_ALL
|
||||||
{
|
{
|
||||||
const cmd_addr_T addr_type = addr_type_arg;
|
|
||||||
int c;
|
int c;
|
||||||
int i;
|
int i;
|
||||||
long n;
|
long n;
|
||||||
|
Reference in New Issue
Block a user