From 576784bca813a0c4eb7641f3bef59ae78ed12eec Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Jan 2016 18:45:47 +0100 Subject: Hide import statistics in quiet mode Do not show the import summary when system dialogs are disabled or when the --quiet option is specified, even if calcurse is executed in non-interactive mode. Signed-off-by: Lukas Fleischer --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/io.c b/src/io.c index e72a29d..451f1c1 100644 --- a/src/io.c +++ b/src/io.c @@ -1222,7 +1222,7 @@ void io_import_data(enum import_type type, const char *stream_name, int list) mem_free(read); mem_free(stat); wgetch(win[KEY].p); - } else if (ui_mode == UI_CMDLINE) { + } else if (ui_mode == UI_CMDLINE && show_dialogs()) { printf(proc_report, stats.lines); printf("\n%s / %s / %s / %s\n", stats_str[0], stats_str[1], stats_str[2], stats_str[3]); -- cgit v1.2.3-70-g09d2