aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-09 15:32:16 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-09 15:32:16 +0000
commit6a24638eee1596c6de74057b3b05a90612c3d0e7 (patch)
treeaf1c20e57fb4d9f86e3d3f4a30ef7fff3c151eee /main.c
parent[w3m-dev 03543] External URI loader (Debian closes: Bug#169962) (diff)
downloadw3m-6a24638eee1596c6de74057b3b05a90612c3d0e7.tar.gz
w3m-6a24638eee1596c6de74057b3b05a90612c3d0e7.zip
* 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 (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.c b/main.c
index 5643aa2..bb6c58f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.161 2002/12/09 15:21:13 ukai Exp $ */
+/* $Id: main.c,v 1.162 2002/12/09 15:32:18 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -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", "");