12345678910111213141516171819202122 |
- #include "private.h"
- const clish_command_t *clish_shell_resolve_prefix(const clish_shell_t * this,
- const char *line)
- {
- clish_command_t *cmd, *result;
-
- result = clish_view_resolve_prefix(this->view, line, BOOL_TRUE);
-
- cmd = clish_view_resolve_prefix(this->global, line, BOOL_TRUE);
- result = clish_command_choose_longest(result, cmd);
- return result;
- }
|