diff --git a/src/commands.cc b/src/commands.cc index 5783b0b8..fc717814 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -306,7 +306,7 @@ private: template struct PromptCompleterAdapter { - PromptCompleterAdapter(Completer completer) : m_completer{completer} {} + PromptCompleterAdapter(Completer completer) : m_completer{std::move(completer)} {} Completions operator()(const Context& context, CompletionFlags flags, StringView prefix, ByteCount cursor_pos)