commit 35cde9f8d7abcf22f9466d6b4aa93a37636f413c
parent d4d2840f5d456adecfbc5ddfcb08e4550f55ae9e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 3 Oct 2022 10:10:10 +0200
tweaks: elide an unused parameter
The parameter has been redundant since commit 9faa9545 from two years ago.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -2461,8 +2461,8 @@ char **username_completion(const char *morsel, size_t length, size_t *num_matche
* This code is 'as is' with no warranty.
* This code may safely be consumed by a BSD or GPL license. */
-/* Try to complete the given fragment of given length to a filename. */
-char **filename_completion(const char *morsel, size_t length, size_t *num_matches)
+/* Try to complete the given fragment to an existing filename. */
+char **filename_completion(const char *morsel, size_t *num_matches)
{
char *dirname = copy_of(morsel);
char *slash, *filename;
@@ -2555,7 +2555,7 @@ char *input_tab(char *morsel, size_t *place, void (*refresh_func)(void), bool *l
/* If there are no matches yet, try matching against filenames. */
if (matches == NULL)
- matches = filename_completion(morsel, *place, &num_matches);
+ matches = filename_completion(morsel, &num_matches);
/* If possible completions were listed before but none will be listed now... */
if (*listed && num_matches < 2) {