|
@@ -66,6 +66,9 @@ static char *find_context_var(const context_t * this, const char *name)
|
|
} else if (!lub_string_nocasecmp(name, "__cmd")) {
|
|
} else if (!lub_string_nocasecmp(name, "__cmd")) {
|
|
result = lub_string_dup(clish_command__get_name(
|
|
result = lub_string_dup(clish_command__get_name(
|
|
clish_command__get_orig(this->cmd)));
|
|
clish_command__get_orig(this->cmd)));
|
|
|
|
+ } else if (!lub_string_nocasecmp(name, "__orig_cmd")) {
|
|
|
|
+ result = lub_string_dup(clish_command__get_name(
|
|
|
|
+ clish_command__get_orig(this->cmd)));
|
|
} else if (!lub_string_nocasecmp(name, "__line")) {
|
|
} else if (!lub_string_nocasecmp(name, "__line")) {
|
|
if (this->pargv)
|
|
if (this->pargv)
|
|
result = clish_variable__get_line(this->cmd, this->pargv);
|
|
result = clish_variable__get_line(this->cmd, this->pargv);
|