Skip to content

Commit

Permalink
Avoid unnecessary copy of completion candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
krobelus committed Dec 22, 2022
1 parent 26c31ed commit 7add106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ class Prompt : public InputMode
items.push_back({ candidate, {} });

const auto menu_style = (m_flags & PromptFlags::Search) ? MenuStyle::Search : MenuStyle::Prompt;
context().client().menu_show(items, {}, menu_style);
context().client().menu_show(std::move(items), {}, menu_style);

if (menu)
context().client().menu_select(0);
Expand Down

0 comments on commit 7add106

Please sign in to comment.