remove redundant call (done in constructor of completion_t)

This commit is contained in:
Johannes Altmanninger 2019-08-23 20:58:42 +02:00 committed by ridiculousfish
parent 42c6b9c176
commit 068aba1902

View File

@ -400,8 +400,7 @@ static owning_lock<autoload_t> completion_autoloader{autoload_t(L"fish_complete_
/// Create a new completion entry.
void append_completion(std::vector<completion_t> *completions, wcstring comp, wcstring desc,
complete_flags_t flags, string_fuzzy_match_t match) {
complete_flags_t resolved_flags = resolve_auto_space(comp, flags);
completion_t completion{std::move(comp), std::move(desc), match, resolved_flags};
completion_t completion{std::move(comp), std::move(desc), match, flags};
completions->push_back(std::move(completion));
}