Bug fix: Remote --tell output
authorColin Clark <cclark@mcb.net>
Tue, 28 Mar 2017 18:27:16 +0000 (19:27 +0100)
committerColin Clark <cclark@mcb.net>
Tue, 28 Mar 2017 18:27:16 +0000 (19:27 +0100)
Make the output go where it is supposed to go

src/remote.c

index 3d11d22..fc7117e 100644 (file)
@@ -536,7 +536,10 @@ static void gr_file_tell(const gchar *text, GIOChannel *channel, gpointer data)
        LayoutWindow *lw = NULL; /* NULL to force layout_valid() to do some magic */
        if (!layout_valid(&lw)) return;
        if (image_get_path(lw->image))
-               printf_term("%s %s\n", GQ_APPNAME, image_get_path(lw->image));
+               {
+               g_io_channel_write_chars(channel, image_get_path(lw->image), -1, NULL, NULL);
+               g_io_channel_write_chars(channel, "\n", -1, NULL, NULL);
+               }
 }
 
 static void gr_config_load(const gchar *text, GIOChannel *channel, gpointer data)