Fix GetRepeatCommand so it works with multi-word commands.
Move the "source", "alias", and "unalias" commands to "commands *".
Move "source-file" to "source list".
Added a "source info" command but it isn't implemented yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107751 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectMultiword.cpp b/source/Commands/CommandObjectMultiword.cpp
index 88c3eed..9e02d9e 100644
--- a/source/Commands/CommandObjectMultiword.cpp
+++ b/source/Commands/CommandObjectMultiword.cpp
@@ -287,3 +287,16 @@
}
}
+const char *
+CommandObjectMultiword::GetRepeatCommand (Args ¤t_command_args, uint32_t index)
+{
+ if (current_command_args.GetArgumentCount() == 0)
+ return NULL;
+ index++;
+ CommandObject *sub_command_object = GetSubcommandObject (current_command_args.GetArgumentAtIndex(index));
+ if (sub_command_object == NULL)
+ return NULL;
+ else
+ return sub_command_object->GetRepeatCommand(current_command_args, index);
+}
+