Skip to content

Commit 037eb4c

Browse files
author
git apple-llvm automerger
committed
Merge commit 'f905294b060a' from swift/release/5.3 into swift/master
2 parents cc60239 + f905294 commit 037eb4c

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)