aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-16 03:30:15 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-16 03:30:15 +0000
commit60bd3687db36c2a34f5a09764f1b6dbd2db24cd1 (patch)
tree613e1a2d9113042aa4fbc141807b237f24276f3c /main.c
parentRename version number 0.2.1-inu-1.6 as 0.2.2 (diff)
downloadw3m-60bd3687db36c2a34f5a09764f1b6dbd2db24cd1.tar.gz
w3m-60bd3687db36c2a34f5a09764f1b6dbd2db24cd1.zip
[w3m-dev 02413] Re: mark history bug
From: Tsutomu Okada <okada@furuno.co.jp> When input invalid regex for mark regexp, "Invalid regular expression" is added to the history.
Diffstat (limited to '')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index dc8ae6f..be8b81f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.3 2001/11/15 00:32:13 a-ito Exp $ */
+/* $Id: main.c,v 1.4 2001/11/16 03:30:15 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -2241,11 +2241,11 @@ reMark(void)
displayBuffer(Currentbuf, B_NORMAL);
return;
}
- MarkString = str;
- if ((MarkString = regexCompile(MarkString, 1)) != NULL) {
- disp_message(MarkString, TRUE);
+ if ((p = regexCompile(str, 1)) != NULL) {
+ disp_message(p, TRUE);
return;
}
+ MarkString = str;
for (l = Currentbuf->firstLine; l != NULL; l = l->next) {
p = l->lineBuf;
for (;;) {