summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-09-25 12:04:48 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-09-25 12:04:48 +0000
commit0ba85fdb4f51cdbf02f2149d9abde8238ce76a0f (patch)
treed04ed834fc7329ff60f6cba5ba035dfe7e3c5754 /lldb/source/Interpreter
parent2c93d061f2e8f343cc95892b7813959160c12dfc (diff)
downloadbcm5719-llvm-0ba85fdb4f51cdbf02f2149d9abde8238ce76a0f.tar.gz
bcm5719-llvm-0ba85fdb4f51cdbf02f2149d9abde8238ce76a0f.zip
[lldb][NFC] Remove useless cursor shifting in Options::HandleOptionCompletion
The cursor position is always at the end of the current argument (as the argument cut off after the cursor position). So this code is a no-op and can be removed. llvm-svn: 372851
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/Options.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 3c9c5f76698..e5fa84f6f2a 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -720,11 +720,8 @@ bool Options::HandleOptionCompletion(CompletionRequest &request,
} else if (opt_arg_pos == request.GetCursorIndex()) {
// Okay the cursor is on the completion of an argument. See if it has a
// completion, otherwise return no matches.
-
- CompletionRequest subrequest = request;
- subrequest.SetCursorCharPosition(subrequest.GetCursorArgument().size());
if (opt_defs_index != -1) {
- HandleOptionArgumentCompletion(subrequest, opt_element_vector, i,
+ HandleOptionArgumentCompletion(request, opt_element_vector, i,
interpreter);
return true;
} else {
OpenPOWER on IntegriCloud