Skip to content

Commit

Permalink
Enable show short/full function names in Vv mode (#3958)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiweiHu authored Nov 9, 2023
1 parent a881956 commit eabd3e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions librz/core/tui/vmenus.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ static void rz_core_visual_analysis_refresh_column(RzCore *core, int colpos) {
static const char *help_fun_visual[] = {
"(a)", "analyze ", "(-)", "delete ", "(x)", "xrefs to ", "(X)", "xrefs from\n",
"(r)", "rename ", "(c)", "calls ", "(d)", "define ", "(:)", "shell ", "(v)", "vars\n",
"(j/k)", "next/prev ", "(tab)", "column ", "(_)", "hud ", "(?)", " help\n",
"(j/k)", "next/prev ", "(tab)", "column ", "(_)", "hud ", "(?)", "help\n",
"(f/F)", "set/reset filter ", "(s)", "function signature ", "(q)", "quit\n",
"(=)", "show/hide legend\n\n",
"(=)", "show/hide legend ", "(h/l)", "short/full function name\n\n",
NULL
};

Expand Down Expand Up @@ -592,7 +592,7 @@ static void set_current_option_to_seek(RzCore *core) {
/* Like emenu but for real */
RZ_IPI void rz_core_visual_analysis(RzCore *core, const char *input) {
char old[218];
int nfcns, ch, _option = 0;
int nfcns, ch = 0;

RzCoreVisual *visual = core->visual;
RzConsEvent olde = core->cons->event_resize;
Expand Down Expand Up @@ -930,13 +930,13 @@ RZ_IPI void rz_core_visual_analysis(RzCore *core, const char *input) {
goto beach;
break;
case 'l':
level = 1;
_option = option;
rz_cons_singleton()->show_vals = true;
break;
case 'h':
rz_cons_singleton()->show_vals = false;
break;
case 'b': // back
level = 0;
option = _option;
break;
case 'Q':
case 'q':
Expand Down

0 comments on commit eabd3e7

Please sign in to comment.