diff --git a/src/complete.cpp b/src/complete.cpp index fe4d67a40..a93047493 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -1589,16 +1589,19 @@ void completer_t::perform() { tokenizer_t tok(unaliased_cmd.c_str(), TOK_ACCEPT_UNFINISHED); maybe_t cmd_tok = tok.next(); assert(cmd_tok); - unaliased_cmd = unaliased_cmd.replace(0, cmd_tok->offset + cmd_tok->length, L""); + unaliased_cmd = + unaliased_cmd.replace(0, cmd_tok->offset + cmd_tok->length, L""); parser->libdata().transient_commandlines.push_back(unaliased_cmd); - cleanup_t remove_transient([&] { parser->libdata().transient_commandlines.pop_back(); }); + cleanup_t remove_transient( + [&] { parser->libdata().transient_commandlines.pop_back(); }); std::vector comp; - complete(unaliased_cmd, &comp, - completion_request_t::fuzzy_match, parser->vars(), parser->shared()); + complete(unaliased_cmd, &comp, completion_request_t::fuzzy_match, + parser->vars(), parser->shared()); this->completions.insert(completions.end(), comp.begin(), comp.end()); do_file = false; - } else if (!complete_param(cmd, previous_argument_unescape, current_argument_unescape, - !had_ddash)) { // Invoke any custom completions for this command. + } else if (!complete_param( + cmd, previous_argument_unescape, current_argument_unescape, + !had_ddash)) { // Invoke any custom completions for this command. do_file = false; } if (wants_transient) { diff --git a/src/fallback.cpp b/src/fallback.cpp index d52e0ec7c..6b7ff3d62 100644 --- a/src/fallback.cpp +++ b/src/fallback.cpp @@ -219,9 +219,7 @@ int futimes(int fd, const struct timeval *times) { #endif #if HAVE_GETTEXT -char *fish_gettext(const char *msgid) { - return gettext(msgid); -} +char *fish_gettext(const char *msgid) { return gettext(msgid); } char *fish_bindtextdomain(const char *domainname, const char *dirname) { return bindtextdomain(domainname, dirname);