Skip to content

Commit 73b66bb

Browse files
committed
fx
1 parent 4fe7c4d commit 73b66bb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libr/core/cbin.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
173173
SdbListIter *iter;
174174
SdbKv *kv;
175175
#if RUNSCRIPT
176-
r_cons_push ();
177176
r_strbuf_append (s0, "fs format\n");
178177
#else
179178
if (IS_MODE_RAD (mode)) {
@@ -300,7 +299,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
300299
r_strbuf_append_strbuf (s0, s1);
301300
r_strbuf_append_strbuf (s0, s2);
302301
char *s = r_strbuf_drain (s0);
303-
r_cons_pop ();
304302
if (IS_MODE_RAD (mode)) {
305303
r_cons_print (s);
306304
} else if (IS_MODE_SET (mode)) {

libr/core/cmd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5697,7 +5697,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
56975697
#else
56985698
const bool istty = true;
56995699
#endif
5700-
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;
5700+
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;
57015701
size_t current_line = 0;
57025702
nl = strchr (odata, '\n');
57035703
if (nl) {
@@ -5708,6 +5708,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
57085708
}
57095709
if (r_cons_is_breaked ()) {
57105710
free (odata);
5711+
R_LOG_INFO ("cmd.lines is breaked");
57115712
r_cons_break_pop ();
57125713
return ret;
57135714
}
@@ -5716,9 +5717,9 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
57165717
if (r < 0) {
57175718
data = nl + 1;
57185719
ret = -1;
5720+
R_LOG_INFO ("cmd.lines '%s' fails", data);
57195721
break;
57205722
}
5721-
r_cons_flush ();
57225723
if (data[0] == 'q') {
57235724
if (data[1] == '!') {
57245725
ret = -1;

0 commit comments

Comments
 (0)