patch 8.1.2411: function argument copied unnecessarily
Problem: Function argument copied unnecessarily.
Solution: Use the argument directly.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index b5ce9df..fb07450 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3412,13 +3412,12 @@
get_address(
exarg_T *eap UNUSED,
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 silent, // no errors or side effects
int to_other_file, // flag: may jump to other file
int address_count UNUSED) // 1 for first address, >1 after comma
{
- cmd_addr_T addr_type = addr_type_arg;
int c;
int i;
long n;