mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
Fix color and indentation issues in some comments
This commit is contained in:
parent
c576ca036b
commit
7851b75e5c
@ -1722,13 +1722,16 @@ static void handle_print_cc_update (RCore *core, RDisasmState *ds) {
|
||||
}
|
||||
// if doesnt fits in screen newline
|
||||
if (cmtright) {
|
||||
handle_comment_align (core, ds);
|
||||
if (ds->show_color)
|
||||
r_cons_printf (" ;"Color_RESET"%s%s%s"Color_RESET, ds->pal_comment, ccstr, tmp);
|
||||
r_cons_printf (" "Color_RESET"%s;%s%s"Color_RESET,
|
||||
ds->pal_comment, ccstr, tmp);
|
||||
else r_cons_printf (" ;%s%s", ccstr, tmp);
|
||||
} else {
|
||||
if (ds->show_color)
|
||||
r_cons_printf ("\n%s%s%s%s%s"Color_RESET" ^- %s%s"Color_RESET,
|
||||
ds->color_fline, ds->pre, ds->color_flow, sn, ds->refline, ccstr, tmp);
|
||||
r_cons_printf ("\n%s%s%s%s%s "Color_RESET"^-%s %s%s"Color_RESET,
|
||||
ds->color_fline, ds->pre, ds->color_flow,
|
||||
sn, ds->refline, ds->pal_comment, ccstr, tmp);
|
||||
else r_cons_printf ("\n%s%s%s ^- %s%s", ds->pre, ds->refline, sn, ccstr, tmp);
|
||||
}
|
||||
}
|
||||
@ -1862,8 +1865,8 @@ static void comment_newline (RCore *core, RDisasmState *ds) {
|
||||
sn = ds->show_section? getSectionName (core, ds->at): "";
|
||||
handle_comment_align (core, ds);
|
||||
if (ds->show_color) {
|
||||
r_cons_printf ("\n%s%s%s%s"Color_RESET" ^- ",
|
||||
ds->color_fline, ds->pre, sn, ds->refline);
|
||||
r_cons_printf ("\n%s%s%s%s"Color_RESET" ^- %s",
|
||||
ds->color_fline, ds->pre, sn, ds->refline, ds->pal_comment);
|
||||
} else {
|
||||
r_cons_printf ("\n%s%s%s ^- ", ds->pre, sn, ds->refline);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user