mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
cli/new: Avoid printing "\033[K" to non-terminal output
This commit is contained in:
parent
0497d695ca
commit
3071fc04fb
1 changed files with 2 additions and 3 deletions
|
@ -905,10 +905,9 @@ print_results (const add_files_state_t *state)
|
|||
state->processed_files == 1 ? "file" : "total files");
|
||||
notmuch_time_print_formatted_seconds (elapsed);
|
||||
if (elapsed > 1)
|
||||
printf (" (%d files/sec.).\033[K\n",
|
||||
printf (" (%d files/sec.)",
|
||||
(int) (state->processed_files / elapsed));
|
||||
else
|
||||
printf (".\033[K\n");
|
||||
printf (".%s\n", (state->output_is_a_tty) ? "\033[K" : "");
|
||||
}
|
||||
|
||||
if (state->added_messages)
|
||||
|
|
Loading…
Reference in a new issue