mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-02 01:22:02 +00:00
Autocomplete e <tab>
##shell (#17855)
This commit is contained in:
parent
f318c2041f
commit
b0228ca85b
@ -1292,14 +1292,11 @@ static void autocomplete_evals(RCore *core, RLineCompletion *completion, const c
|
||||
r_return_if_fail (str);
|
||||
RConfigNode *bt;
|
||||
RListIter *iter;
|
||||
char *tmp = strrchr (str, ' ');
|
||||
const char *tmp = strrchr (str, ' ');
|
||||
if (tmp) {
|
||||
str = tmp + 1;
|
||||
}
|
||||
int n = strlen (str);
|
||||
if (n < 1) {
|
||||
return;
|
||||
}
|
||||
size_t n = strlen (str);
|
||||
r_list_foreach (core->config->nodes, iter, bt) {
|
||||
if (!strncmp (bt->name, str, n)) {
|
||||
r_line_completion_push (completion, bt->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user