aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-04-26 16:06:34 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-04-26 16:06:34 +0000
commit76f9795f11ddaa642953db37eb2a52f3c6377793 (patch)
tree57dca4caaf991fd45da6a189c4733eebae055ef2
parent* scripts/.cvsignore: add xface2xpm (diff)
downloadw3m-76f9795f11ddaa642953db37eb2a52f3c6377793.tar.gz
w3m-76f9795f11ddaa642953db37eb2a52f3c6377793.zip
[w3m-dev 03185] Re: cmd_mark in main.c, rev 1.60 broke unmark?
* main.c (cmd_mark): deleted (_mark): xor PE_MARK (reMark): or PE_MARK From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
-rw-r--r--ChangeLog9
-rw-r--r--main.c17
2 files changed, 11 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 72a5e4c..c4c1d1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-27 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
+
+ * [w3m-dev 03185] Re: cmd_mark in main.c, rev 1.60 broke unmark?
+ * main.c (cmd_mark): deleted
+ (_mark): xor PE_MARK
+ (reMark): or PE_MARK
+
2002-04-27 Fumitoshi UKAI <ukai@debian.or.jp>
* scripts/.cvsignore: add xface2xpm
@@ -3395,4 +3402,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.376 2002/04/26 16:00:58 ukai Exp $
+$Id: ChangeLog,v 1.377 2002/04/26 16:06:34 ukai Exp $
diff --git a/main.c b/main.c
index fb0f35c..8c39ca4 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.98 2002/04/24 18:29:35 ukai Exp $ */
+/* $Id: main.c,v 1.99 2002/04/26 16:06:34 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -70,9 +70,6 @@ static void cmd_loadfile(char *path);
static void cmd_loadURL(char *url, ParsedURL *current, char *referer);
static void cmd_loadBuffer(Buffer *buf, int prop, int linkid);
static void keyPressEventProc(int c);
-#ifdef USE_MARK
-static void cmd_mark(Lineprop *p);
-#endif /* USE_MARK */
int show_params_p = 0;
void show_params(FILE * fp);
@@ -2432,18 +2429,10 @@ _mark(void)
if (Currentbuf->firstLine == NULL)
return;
l = Currentbuf->currentLine;
- cmd_mark(&l->propBuf[Currentbuf->pos]);
+ l->propBuf[Currentbuf->pos] ^= PE_MARK;
redrawLine(Currentbuf, l, l->linenumber - Currentbuf->topLine->linenumber);
}
-static void
-cmd_mark(Lineprop *p)
-{
- if (!use_mark)
- return;
- *p |= PE_MARK;
-}
-
/* Go to next mark */
void
nextMk(void)
@@ -2537,7 +2526,7 @@ reMark(void)
for (;;) {
if (regexMatch(p, &l->lineBuf[l->len] - p, p == l->lineBuf) == 1) {
matchedPosition(&p1, &p2);
- cmd_mark(l->propBuf + (p1 - l->lineBuf));
+ l->propBuf[p1 - l->lineBuf] |= PE_MARK;
p = p2;
}
else