cmd: flush console buffer between multi-command

Tests fixed:
db/cmd/feat_grep multi-command single-line grep
db/cmd/cmd_zignature af ; af ; zfs libc-v10.sig - newshell
db/cmd/cmd_zignature af ; af ; zfs libc-v7.sig - newshell

New test failed:
db/tools/rax2 C array {0x33,33,23,32}

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
This commit is contained in:
Anthoine Bourgeois 2021-04-10 01:12:43 +02:00 committed by pancake
parent a846d314dc
commit e55da9853f

View File

@ -3199,6 +3199,9 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
free (cr);
break;
}
if (colon) {
r_cons_flush ();
}
if (cr && *cr && orep > 1) {
// XXX: do not flush here, we need r_cons_push () and r_cons_pop()
r_cons_flush ();