mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-12 17:48:33 +00:00
Do not show search help on invalid commands
This commit is contained in:
parent
4e6be05f62
commit
4618834f26
@ -2172,7 +2172,7 @@ reread:
|
||||
dosearch = true;
|
||||
}
|
||||
break;
|
||||
default:{
|
||||
case '?':{
|
||||
const char* help_msg[] = {
|
||||
"Usage:", "/[amx/] [arg]", "Search stuff (see 'e??search' for options)",
|
||||
"/"," foo\\x00", "search for string 'foo\\0'",
|
||||
@ -2218,6 +2218,9 @@ reread:
|
||||
r_core_cmd_help (core, help_msg);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
eprintf ("See /? for help.\n");
|
||||
break;
|
||||
}
|
||||
searchhits = 0;
|
||||
r_config_set_i (core->config, "search.kwidx", core->search->n_kws);
|
||||
|
Loading…
x
Reference in New Issue
Block a user