mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-28 01:56:12 +00:00
Clear line after 'aa'
This commit is contained in:
parent
6fea61579f
commit
8a818718cc
@ -1562,8 +1562,7 @@ R_API void r_core_anal_stats_free (RCoreAnalStats *s) {
|
||||
free (s);
|
||||
}
|
||||
|
||||
R_API RList* r_core_anal_cycles (RCore *core, int ccl)
|
||||
{
|
||||
R_API RList* r_core_anal_cycles (RCore *core, int ccl) {
|
||||
ut64 addr = core->offset;
|
||||
RAnalOp *op = NULL;
|
||||
RAnalCycleFrame *prev = NULL, *cf = r_anal_cycle_frame_new ();
|
||||
@ -1722,7 +1721,7 @@ R_API RList* r_core_anal_cycles (RCore *core, int ccl)
|
||||
}
|
||||
}
|
||||
return hooks;
|
||||
};
|
||||
}
|
||||
|
||||
R_API void r_core_anal_undefine (RCore *core, ut64 off) {
|
||||
RAnalFunction *f;
|
||||
|
@ -1632,10 +1632,9 @@ if (ret) {
|
||||
case 'a':
|
||||
r_cons_break (NULL, NULL);
|
||||
r_core_anal_all (core);
|
||||
if (core->cons->breaked) {
|
||||
r_cons_clear_line (1);
|
||||
if (core->cons->breaked)
|
||||
eprintf ("Interrupted\n");
|
||||
}
|
||||
r_cons_clear_line (1);
|
||||
r_cons_break_end();
|
||||
if (input[1] == '?') {
|
||||
const char* help_msg[] = {
|
||||
|
@ -170,7 +170,7 @@ static void annotated_hexdump(RCore *core, const char *str, int len) {
|
||||
j = strlen ("- offset - ");
|
||||
for (i=0; i<nb_cols; i+=2) {
|
||||
sprintf (bytes+j, "%02X%02X ", i, i+1);
|
||||
j+= 5;
|
||||
j += 5;
|
||||
}
|
||||
sprintf (bytes+j+i, " ");
|
||||
j++;
|
||||
|
@ -387,7 +387,7 @@ static int autocomplete(RLine *line) {
|
||||
if (keys) {
|
||||
int i, j;
|
||||
for (i=j=0; i<count; i++) {
|
||||
if (!memcmp (keys[i], data, line->buffer.index)) {
|
||||
if (!strncmp (keys[i], data, line->buffer.index)) {
|
||||
tmp_argv[j++] = keys[i];
|
||||
}
|
||||
}
|
||||
@ -399,8 +399,8 @@ static int autocomplete(RLine *line) {
|
||||
line->completion.argv = NULL;
|
||||
}
|
||||
} else
|
||||
if ( (!memcmp (line->buffer.data, "e ", 2))
|
||||
||(!memcmp (line->buffer.data, "e? ", 3))) {
|
||||
if ( (!strncmp (line->buffer.data, "e ", 2))
|
||||
||(!strncmp (line->buffer.data, "e? ", 3))) {
|
||||
int m = (line->buffer.data[1] == '?')? 3: 2;
|
||||
int i = 0, n = strlen (line->buffer.data+m);
|
||||
RConfigNode *bt;
|
||||
@ -418,7 +418,7 @@ static int autocomplete(RLine *line) {
|
||||
} else {
|
||||
int i, j;
|
||||
for (i=j=0; radare_argv[i] && i<CMDS; i++)
|
||||
if (!memcmp (radare_argv[i], line->buffer.data,
|
||||
if (!strncmp (radare_argv[i], line->buffer.data,
|
||||
line->buffer.index))
|
||||
tmp_argv[j++] = radare_argv[i];
|
||||
tmp_argv[j] = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user