Do not show search help on invalid commands

This commit is contained in:
pancake 2015-12-31 14:13:28 +01:00
parent 4e6be05f62
commit 4618834f26

View File

@ -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);