Fix #13367 - last line glitch in r_cons_strcat_at

This commit is contained in:
pancake 2019-03-25 16:12:31 +01:00 committed by radare
parent 0823980429
commit 67bc30a5f6
2 changed files with 2 additions and 1 deletions

View File

@ -264,6 +264,7 @@ R_API void r_cons_strcat_at(const char *_str, int x, char y, int w, int h) {
}
}
if (len > 1) {
r_cons_gotoxy (x, y + rows);
r_cons_memcat (str + o, len);
}
r_cons_strcat (Color_RESET);

View File

@ -205,7 +205,7 @@ R_API int __core_visual_view_graph_update(RCore *core, RCoreVisualViewGraph *sta
char *output = r_core_cmd_strf (core, "pd %d @e:asm.flags=0@ 0x%08"PFMT64x"; pds 256 @ 0x%08"PFMT64x"\n",
32, status->addr);
int disy = colh + 2;
r_cons_strcat_at (output, 0, disy, w, h - disy);
r_cons_strcat_at (output, 10, disy, w, h - disy);
free (output);
r_cons_flush();