Skip to content

Commit 647de2d

Browse files
committed
Avoid unnecessary copy of completion candidates
1 parent e22bffd commit 647de2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input_handler.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ class Prompt : public InputMode
10851085
items.push_back({ candidate, {} });
10861086

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

10901090
if (menu)
10911091
context().client().menu_select(0);

0 commit comments

Comments
 (0)