diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-24 16:27:34 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-24 16:27:34 +0000 |
commit | 296f837c0a58d49260a7020a0ba2f407fc07400a (patch) | |
tree | 5a61015766d825617f0cd50f47130df5fa507680 /image.c | |
parent | version.c.in: cvs version (diff) | |
download | w3m-296f837c0a58d49260a7020a0ba2f407fc07400a.tar.gz w3m-296f837c0a58d49260a7020a0ba2f407fc07400a.zip |
[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 <h-saka@lsi.nec.co.jp>
Diffstat (limited to '')
-rw-r--r-- | image.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <sys/types.h> @@ -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 |