From ca538fa8d85028c8c9a2e67cda8f33b007a43b49 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 22 Sep 2020 00:16:00 +0200 Subject: [PATCH] Refactor: make function static and reformat "IndentCaseLabels: false" seems nice but not now. --- src/complete.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/complete.cpp b/src/complete.cpp index 35d2ae78d..47f492c89 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -1666,7 +1666,7 @@ static void append_switch(wcstring &out, const wcstring &opt) { append_format(out, L" --%ls", opt.c_str()); } -wcstring completion2string(const complete_entry_opt_t &o, wcstring cmd, bool is_path) { +static wcstring completion2string(const complete_entry_opt_t &o, wcstring cmd, bool is_path) { wcstring out; out.append(L"complete"); @@ -1685,18 +1685,18 @@ wcstring completion2string(const complete_entry_opt_t &o, wcstring cmd, bool is_ append_switch(out, is_path ? L'p' : L'c', cmd); switch (o.type) { - case option_type_args_only: { - break; - } - case option_type_short: { - append_switch(out, L's', wcstring(1, o.option.at(0))); - break; - } - case option_type_single_long: - case option_type_double_long: { - append_switch(out, o.type == option_type_single_long ? L'o' : L'l', o.option); - break; - } + case option_type_args_only: { + break; + } + case option_type_short: { + append_switch(out, L's', wcstring(1, o.option.at(0))); + break; + } + case option_type_single_long: + case option_type_double_long: { + append_switch(out, o.type == option_type_single_long ? L'o' : L'l', o.option); + break; + } } append_switch(out, L'd', C_(o.desc));