aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
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 /main.c
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>
Diffstat (limited to 'main.c')
-rw-r--r--main.c17
1 files changed, 3 insertions, 14 deletions
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