aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-01 04:55:11 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-01 04:58:05 -0500
commit3847b58a134c597b9662a119a4dcfa61db3b3076 (patch)
treed7f9da42c390df996c5380abaa60f579bea60097
parentd7b577d6ab38da8f199a616707a666c43e252ce3 (diff)
downloadrneovim-3847b58a134c597b9662a119a4dcfa61db3b3076.tar.gz
rneovim-3847b58a134c597b9662a119a4dcfa61db3b3076.tar.bz2
rneovim-3847b58a134c597b9662a119a4dcfa61db3b3076.zip
vim-patch:8.1.2411: function argument copied unnecessarily
Problem: Function argument copied unnecessarily. Solution: Use the argument directly. https://github.com/vim/vim/commit/1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2
-rw-r--r--src/nvim/ex_docmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index c5d64d2e25..e56a58f8f8 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -3730,14 +3730,13 @@ char_u *skip_range(
// Return MAXLNUM when no Ex address was found.
static linenr_T get_address(exarg_T *eap,
char_u **ptr,
- cmd_addr_T addr_type_arg,
+ cmd_addr_T addr_type,
int skip, // only skip the address, don't use it
bool silent, // no errors or side effects
int to_other_file, // flag: may jump to other file
int address_count) // 1 for first, >1 after comma
FUNC_ATTR_NONNULL_ALL
{
- const cmd_addr_T addr_type = addr_type_arg;
int c;
int i;
long n;