Skip to content

Commit 825adbe

Browse files
committed
[lldb] Don't tab complete stop-hook delete beyond 1st argument
This already applies to enable and disable, delete was missing a check. This cannot be tested properly with the current completion tests, but it will be when I make them more strict in a follow up patch.
1 parent ef87d43 commit 825adbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4942,6 +4942,8 @@ class CommandObjectTargetStopHookDelete : public CommandObjectParsed {
49424942
void
49434943
HandleArgumentCompletion(CompletionRequest &request,
49444944
OptionElementVector &opt_element_vector) override {
4945+
if (request.GetCursorIndex())
4946+
return;
49454947
lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(
49464948
GetCommandInterpreter(), lldb::eStopHookIDCompletion, request, nullptr);
49474949
}

0 commit comments

Comments
 (0)