summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-12-21 15:23:17 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2023-11-13 23:42:39 +0100
commit70e96c272e3a24e06ee6fc4e3dcd598ae716ae42 (patch)
tree807c57e62a01a24b1a65a9fab150056887052391
parented1e2f2e081b8391da8ecaa0c0481e693443058b (diff)
Avoid unnecessary copy of completion candidates
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index a5a25413..0aa7fd32 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -1126,7 +1126,7 @@ private:
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);
const bool menu = (bool)(m_completions.flags & Completions::Flags::Menu);
if (menu)