Skip to content

Commit 78570b6

Browse files
committed
[custom-completion-sorting:+better-rank-heuristic:+fix-cd-after-backspace:+menu-for-doc] Avoid unnecessary copy of completion candidates
1 parent 2395656 commit 78570b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input_handler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ class Prompt : public InputMode
11321132
items.push_back({ candidate, {} });
11331133

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

11371137
if (menu)
11381138
context().client().menu_select(0);

0 commit comments

Comments
 (0)