summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index e014d1d3..1fb82731 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -769,7 +769,9 @@ Completions CommandManager::complete(const Context& context,
concatenated(command.param_desc.switches
| transform(&SwitchMap::Item::key),
ConstArrayView<String>{"-"}));
- return switches.empty() ? Completions{} : Completions{start+1, cursor_pos, std::move(switches)};
+ return switches.empty()
+ ? Completions{}
+ : Completions{start+1, cursor_pos, std::move(switches), Completions::Flags::Menu};
}
if (not command.completer)
return Completions{};