diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-16 03:30:15 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-16 03:30:15 +0000 |
commit | 60bd3687db36c2a34f5a09764f1b6dbd2db24cd1 (patch) | |
tree | 613e1a2d9113042aa4fbc141807b237f24276f3c | |
parent | Rename version number 0.2.1-inu-1.6 as 0.2.2 (diff) | |
download | w3m-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.
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 (;;) { |