From 8bd2f7b4d9d66fa52ddb8bf199e56870a255d335 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 30 Nov 2001 04:56:00 +0000 Subject: [w3m-dev 02590] From: Tsutomu Okada --- ChangeLog | 5 +++++ main.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0520a8e..54b46a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-30 Tsutomu Okada + + * [w3m-dev 02590] + * main.c (_peekURL): peek URL on + 2001-11-30 Hironori Sakamoto * [w3m-dev 02589] diff --git a/main.c b/main.c index 556e198..6aafa19 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.26 2001/11/29 09:34:15 ukai Exp $ */ +/* $Id: main.c,v 1.27 2001/11/30 04:56:00 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -3763,13 +3763,15 @@ _peekURL(int only_img) } a = (only_img ? NULL : retrieveCurrentAnchor(Currentbuf)); if (a == NULL) { - a = retrieveCurrentImg(Currentbuf); + a = (only_img ? NULL :retrieveCurrentForm(Currentbuf)); if (a == NULL) { - a = retrieveCurrentForm(Currentbuf); + a = retrieveCurrentImg(Currentbuf); if (a == NULL) { s = NULL; return; } + } + else { s = Strnew_charp(form2str((FormItemList *)a->url)); goto disp; } -- cgit v1.2.3