From c64f560d9aa3b25114f04cfabf40501732309672 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Sat, 6 May 2017 15:27:21 +0800 Subject: [PATCH] Aligned callee info cmts (#7424) --- libr/core/disasm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libr/core/disasm.c b/libr/core/disasm.c index b888977f85..5436848b1d 100644 --- a/libr/core/disasm.c +++ b/libr/core/disasm.c @@ -3363,6 +3363,7 @@ static void ds_print_calls_hints(RDisasmState *ds) { } else if (!(name = r_anal_type_func_guess (anal, fcn->name))) { return; } + char *spc = ds->show_comment_right ? " " : ""; if (ds->show_color) { r_cons_strcat (ds->pal_comment); } @@ -3370,7 +3371,7 @@ static void ds_print_calls_hints(RDisasmState *ds) { const char *fcn_type = r_anal_type_func_ret (anal, name); if (fcn_type && *fcn_type) { r_cons_printf ( - "; %s%s%s(", fcn_type, + "%s; %s%s%s(", spc, fcn_type, fcn_type[strlen (fcn_type) - 1] == '*' ? "" : " ", name); }