File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
173
173
SdbListIter * iter ;
174
174
SdbKv * kv ;
175
175
#if RUNSCRIPT
176
- r_cons_push ();
177
176
r_strbuf_append (s0 , "fs format\n" );
178
177
#else
179
178
if (IS_MODE_RAD (mode )) {
@@ -300,7 +299,6 @@ R_API void r_core_bin_export_info(RCore *core, int mode) {
300
299
r_strbuf_append_strbuf (s0 , s1 );
301
300
r_strbuf_append_strbuf (s0 , s2 );
302
301
char * s = r_strbuf_drain (s0 );
303
- r_cons_pop ();
304
302
if (IS_MODE_RAD (mode )) {
305
303
r_cons_print (s );
306
304
} else if (IS_MODE_SET (mode )) {
Original file line number Diff line number Diff line change @@ -5697,7 +5697,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
5697
5697
#else
5698
5698
const bool istty = true;
5699
5699
#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 ;
5701
5701
size_t current_line = 0 ;
5702
5702
nl = strchr (odata , '\n' );
5703
5703
if (nl ) {
@@ -5708,6 +5708,7 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
5708
5708
}
5709
5709
if (r_cons_is_breaked ()) {
5710
5710
free (odata );
5711
+ R_LOG_INFO ("cmd.lines is breaked" );
5711
5712
r_cons_break_pop ();
5712
5713
return ret ;
5713
5714
}
@@ -5716,9 +5717,9 @@ R_API int r_core_cmd_lines(RCore *core, const char *lines) {
5716
5717
if (r < 0 ) {
5717
5718
data = nl + 1 ;
5718
5719
ret = -1 ;
5720
+ R_LOG_INFO ("cmd.lines '%s' fails" , data );
5719
5721
break ;
5720
5722
}
5721
- r_cons_flush ();
5722
5723
if (data [0 ] == 'q' ) {
5723
5724
if (data [1 ] == '!' ) {
5724
5725
ret = -1 ;
You can’t perform that action at this time.
0 commit comments