From 3847b58a134c597b9662a119a4dcfa61db3b3076 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 1 Jan 2021 04:55:11 -0500 Subject: 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 --- src/nvim/ex_docmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit