aboutsummaryrefslogtreecommitdiffstats
path: root/linein.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2007-05-23 12:14:24 +0000
committerDai Sato <satodai@w3m.jp>2007-05-23 12:14:24 +0000
commitbdeafaadf120e7b887a6a762eef2f17d9f48d348 (patch)
tree99bdc530a54e874c4dc35b9bc72f09ebcc2f8c67 /linein.c
parentchange char to unsigned char for HTML_DL_COMPACT(133). (diff)
downloadw3m-bdeafaadf120e7b887a6a762eef2f17d9f48d348.tar.gz
w3m-bdeafaadf120e7b887a6a762eef2f17d9f48d348.zip
decoding URLs in correct condition.
Diffstat (limited to '')
-rw-r--r--linein.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linein.c b/linein.c
index 03c14d1..b7e81b6 100644
--- a/linein.c
+++ b/linein.c
@@ -1,4 +1,4 @@
-/* $Id: linein.c,v 1.34 2003/09/26 17:59:51 ukai Exp $ */
+/* $Id: linein.c,v 1.35 2007/05/23 12:14:24 inu Exp $ */
#include "fm.h"
#include "local.h"
#include "myctype.h"
@@ -1025,7 +1025,7 @@ _prev(void)
return;
strCurrentBuf = strBuf;
}
- if (DecodeURL)
+ if (DecodeURL && (cm_mode & CPL_URL) )
p = url_unquote_conv(p, 0);
strBuf = Strnew_charp(p);
CLen = CPos = setStrType(strBuf, strProp);
@@ -1044,7 +1044,7 @@ _next(void)
return;
p = nextHist(hist);
if (p) {
- if (DecodeURL)
+ if (DecodeURL && (cm_mode & CPL_URL) )
p = url_unquote_conv(p, 0);
strBuf = Strnew_charp(p);
}