commit 2400e794168404353d61982cd8173feb9d937e6d
parent 5ff77139c905640bfcdd8989026f9559b3a62d98
Author: ukai <ukai>
Date: Mon, 9 Dec 2002 15:32:16 +0000
* file.c (loadGeneralFile): missing `{', fix indent for SCM_UNKNOWN
* main.c (set_buffer_environ): unused variables `prev_col'
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-10 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * file.c (loadGeneralFile): missing `{', fix indent for SCM_UNKNOWN
+ * main.c (set_buffer_environ): unused variables `prev_col'
+
2002-12-10 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03543] External URI loader (Debian closes: Bug#169962)
diff --git a/file.c b/file.c
@@ -1572,8 +1572,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
tmp = searchURIMethods(&pu);
if (tmp != NULL)
b = loadGeneralFile(tmp->ptr, current, referer, flag, request);
- if (b != NULL && b != NO_BUFFER)
- copyParsedURL(&b->currentURL, &pu);
+ if (b != NULL && b != NO_BUFFER) {
+ copyParsedURL(&b->currentURL, &pu);
return b;
}
#endif
diff --git a/main.c b/main.c
@@ -5364,7 +5364,7 @@ set_buffer_environ(Buffer *buf)
{
static Buffer *prev_buf = NULL;
static Line *prev_line = NULL;
- static short prev_col = -1, prev_pos = -1;
+ static short prev_pos = -1;
Line *l;
if (buf == NULL)
@@ -5405,9 +5405,10 @@ set_buffer_environ(Buffer *buf)
else
set_environ("W3M_CURRENT_FORM", "");
set_environ("W3M_CURRENT_LINE", Sprintf("%d",
- l->real_linenumber)->ptr);
+ l->real_linenumber)->ptr);
set_environ("W3M_CURRENT_COLUMN", Sprintf("%d",
- buf->currentColumn + buf->cursorX + 1)->ptr);
+ buf->currentColumn +
+ buf->cursorX + 1)->ptr);
}
else if (!l) {
set_environ("W3M_CURRENT_WORD", "");