diff options
author | David Spickett <david.spickett@linaro.org> | 2023-09-11 10:59:49 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-09-11 11:00:57 +0000 |
commit | 825adbe5585219ce731045defa019defaf96faab (patch) | |
tree | 039de943ecc83339b53be997544e0b6e964f6205 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | ef87d438345b1fe0fa464af1f92ba2675eff8c63 (diff) | |
download | llvm-825adbe5585219ce731045defa019defaf96faab.zip llvm-825adbe5585219ce731045defa019defaf96faab.tar.gz llvm-825adbe5585219ce731045defa019defaf96faab.tar.bz2 |
[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.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 3e024ff..33330ef 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -4942,6 +4942,8 @@ public: void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override { + if (request.GetCursorIndex()) + return; lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks( GetCommandInterpreter(), lldb::eStopHookIDCompletion, request, nullptr); } |