Skip to content

Commit

Permalink
Bug fix: Remote --tell output
Browse files Browse the repository at this point in the history
Make the output go where it is supposed to go
  • Loading branch information
Colin Clark committed Mar 28, 2017
1 parent ecbdd1d commit 529b863
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 529b863

Please sign in to comment.