From 1959a8562768999654fb385a5f8892a0c3a69f93 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 4 Nov 2006 23:49:35 +0000 Subject: [PATCH] * msg-ui.c (handle_msg): Only write message to terminal if get_error_routing_to_terminal() returns true. --- src/ui/terminal/ChangeLog | 5 +++++ src/ui/terminal/msg-ui.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ui/terminal/ChangeLog b/src/ui/terminal/ChangeLog index 7129d050..db86245e 100644 --- a/src/ui/terminal/ChangeLog +++ b/src/ui/terminal/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 4 15:48:04 2006 Ben Pfaff + + * msg-ui.c (handle_msg): Only write message to terminal if + get_error_routing_to_terminal() returns true. + Fri Jul 7 20:03:42 2006 Ben Pfaff * main.c: (main) Register SIGABRT with bug_handler also. diff --git a/src/ui/terminal/msg-ui.c b/src/ui/terminal/msg-ui.c index 9b71cb51..bcfe1ea6 100644 --- a/src/ui/terminal/msg-ui.c +++ b/src/ui/terminal/msg-ui.c @@ -141,9 +141,8 @@ handle_msg (const struct msg *m) ds_put_cstr (&string, m->text); - /* FIXME: Check set_messages and set_errors to determine where to - send errors and messages. */ - dump_message (ds_cstr (&string), get_viewwidth (), 8, stdout); + if (get_error_routing_to_terminal ()) + dump_message (ds_cstr (&string), get_viewwidth (), 8, stdout); ds_destroy (&string); } -- 2.30.2