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 27, 2022
1 parent e22bffd commit 647de2d
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 647de2d

Please sign in to comment.