Move input completer when constructing PromptCompleterAdapter
I think we usually do this when passing completers.
This commit is contained in:
parent
559af669c7
commit
47329260da
|
@ -306,7 +306,7 @@ private:
|
||||||
template<typename Completer>
|
template<typename Completer>
|
||||||
struct PromptCompleterAdapter
|
struct PromptCompleterAdapter
|
||||||
{
|
{
|
||||||
PromptCompleterAdapter(Completer completer) : m_completer{completer} {}
|
PromptCompleterAdapter(Completer completer) : m_completer{std::move(completer)} {}
|
||||||
|
|
||||||
Completions operator()(const Context& context, CompletionFlags flags,
|
Completions operator()(const Context& context, CompletionFlags flags,
|
||||||
StringView prefix, ByteCount cursor_pos)
|
StringView prefix, ByteCount cursor_pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user