Skip to content

Commit f905294

Browse files
author
git apple-llvm automerger
committed
Merge commit 'fcb37a13fe5e' from apple/stable/20200108 into swift/release/5.3
2 parents 3674a9e + fcb37a1 commit f905294

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Expression/REPL.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,10 @@ void REPL::IOHandlerComplete(IOHandler &io_handler,
472472
debugger.GetCommandInterpreter().HandleCompletion(sub_request);
473473
StringList matches, descriptions;
474474
sub_result.GetMatches(matches);
475+
// Prepend command prefix that was excluded in the completion request.
476+
if (request.GetCursorIndex() == 0)
477+
for (auto &match : matches)
478+
match.insert(0, 1, ':');
475479
sub_result.GetDescriptions(descriptions);
476480
request.AddCompletions(matches, descriptions);
477481
return;

0 commit comments

Comments
 (0)