From 296f837c0a58d49260a7020a0ba2f407fc07400a Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 24 Feb 2003 16:27:34 +0000 Subject: [w3m-dev-en 00891] Re: w3m 0.4 has been released! * image.c (getCharSize): set W3M_TTY here, before Imgdisplay invoke (openImgdisplay): no need setting W3M_TTY here From: Hironori SAKAMOTO --- image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index 53c3f00..099b3ad 100644 --- a/image.c +++ b/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.33 2003/02/13 12:54:37 ukai Exp $ */ +/* $Id: image.c,v 1.34 2003/02/24 16:27:36 ukai Exp $ */ #include "fm.h" #include @@ -51,6 +51,7 @@ getCharSize() Str tmp; int w = 0, h = 0; + set_environ("W3M_TTY", ttyname_tty()); tmp = Strnew(); if (!strchr(Imgdisplay, '/')) Strcat_m_charp(tmp, w3m_auxbin_dir(), "/", NULL); @@ -96,7 +97,6 @@ openImgdisplay() /* child */ char *cmd; setup_child(FALSE, 2, -1); - set_environ("W3M_TTY", ttyname_tty()); if (!strchr(Imgdisplay, '/')) cmd = Strnew_m_charp(w3m_auxbin_dir(), "/", Imgdisplay, NULL)->ptr; else -- cgit v1.2.3