Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 14, 2022
1 parent 4fe7c4d commit 73b66bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions libr/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
SdbListIter *iter;
SdbKv *kv;
#if RUNSCRIPT
r_cons_push ();
r_strbuf_append (s0, "fs format\n");
#else
if (IS_MODE_RAD (mode)) {
Expand Down Expand Up @@ -300,7 +299,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
r_strbuf_append_strbuf (s0, s1);
r_strbuf_append_strbuf (s0, s2);
char *s = r_strbuf_drain (s0);
r_cons_pop ();
if (IS_MODE_RAD (mode)) {
r_cons_print (s);
} else if (IS_MODE_SET (mode)) {
Expand Down
5 changes: 3 additions & 2 deletions libr/core/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5697,7 +5697,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
#else
const bool istty = true;
#endif
const bool show_progress_bar = core->print->enable_progressbar && r_config_get_b (core->config, "scr.interactive") && r_config_get_i (core->config, "scr.progressbar") && istty;
const bool show_progress_bar = core->print->enable_progressbar && r_config_get_b (core->config, "scr.interactive") && r_config_get_b (core->config, "scr.progressbar") && istty;
size_t current_line = 0;
nl = strchr (odata, '\n');
if (nl) {
Expand All @@ -5708,6 +5708,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
}
if (r_cons_is_breaked ()) {
free (odata);
R_LOG_INFO ("cmd.lines is breaked");
r_cons_break_pop ();
return ret;
}
Expand All @@ -5716,9 +5717,9 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
if (r < 0) {
data = nl + 1;
ret = -1;
R_LOG_INFO ("cmd.lines '%s' fails", data);
break;
}
r_cons_flush ();
if (data[0] == 'q') {
if (data[1] == '!') {
ret = -1;
Expand Down

0 comments on commit 73b66bb

Please sign in to comment.