summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-05-12 21:25:08 +1000
committerMaxime Coste <mawww@kakoune.org>2019-05-17 19:52:22 +1000
commitc972dfd2d7875dd3780d4abd4ef0df0c09be421a (patch)
treee726e886af03dff4989d20d3e5af54da286980e9 /src/command_manager.cc
parent4916471029dfa9853473679823bf557bad2c4a52 (diff)
Introduce Menu completion flags to auto select best candidate
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index e4d52d76..64b12a32 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -726,7 +726,7 @@ Completions CommandManager::complete(const Context& context,
context, flags, params, tokens.size() - 2,
cursor_pos_in_token), start);
- if (not completions.quoted and token.type == Token::Type::Raw)
+ if (not (completions.flags & Completions::Flags::Quoted) and token.type == Token::Type::Raw)
{
for (auto& c : completions.candidates)
c = (not c.empty() and contains("%'\"", c[0]) ? "\\" : "") + escape(c, "; \t", '\\');