From 39acf2d7e74d1680d5cc998a5898d53adebde19a Mon Sep 17 00:00:00 2001 From: John McCabe Date: Fri, 25 Aug 2017 22:19:33 +0100 Subject: [PATCH] Fix function names in writeFlagHandler The references to the `__handle_filename_extension_flag` and `__handle_subdirs_in_dir_flag` functions in `writeFlagHandler` hadn't been updated correctly in the previous commits. Signed-off-by: John McCabe --- bash_completions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completions.go b/bash_completions.go index c2fbe84d..cc5d7da8 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -311,7 +311,7 @@ func writeFlagHandler(buf *bytes.Buffer, name string, annotations map[string][]s var ext string if len(value) > 0 { - ext = "__%[1]s_handle_filename_extension_flag " + strings.Join(value, "|") + ext = fmt.Sprintf("__%s_handle_filename_extension_flag ", name) + strings.Join(value, "|") } else { ext = "_filedir" } @@ -329,7 +329,7 @@ func writeFlagHandler(buf *bytes.Buffer, name string, annotations map[string][]s var ext string if len(value) == 1 { - ext = "__%[1]s_handle_subdirs_in_dir_flag " + value[0] + ext = fmt.Sprintf("__%s_handle_subdirs_in_dir_flag ", name) + value[0] } else { ext = "_filedir -d" }