Skip to content

Commit fa88d6b

Browse files
author
Davide Italiano
committed
[REPL] Fix a crash when the completion returned contains only blanks.
<rdar://problem/56483355>
1 parent 01eeb9c commit fa88d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Expression/REPL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void REPL::IOHandlerComplete(IOHandler &io_handler,
475475
// Strip spaces from the line and see if we had only spaces
476476
if (request.GetRawLineUntilCursor().trim().empty()) {
477477
// Only spaces on this line, so just indent
478-
request.AddCompletion(m_indent_str);
478+
request.AddCompletion(m_indent_str, "", CompletionMode::Partial);
479479
return;
480480
}
481481

0 commit comments

Comments
 (0)