aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 22:07:45 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 22:07:45 +0000
commitf9ec244bea3b07f84a6cd466d5133fa7c6bbffc0 (patch)
treefeb24a104f3cc9f4c244b848a8dc7d702a15e357 /main.c
parentadd nextpage_topline (diff)
downloadw3m-f9ec244bea3b07f84a6cd466d5133fa7c6bbffc0.tar.gz
w3m-f9ec244bea3b07f84a6cd466d5133fa7c6bbffc0.zip
add use_mark
Diffstat (limited to '')
-rw-r--r--main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.c b/main.c
index 556484d..b7386ef 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.21 2001/11/23 21:40:19 ukai Exp $ */
+/* $Id: main.c,v 1.22 2001/11/23 22:07:45 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -2142,6 +2142,8 @@ void
_mark(void)
{
Line *l;
+ if (! use_mark)
+ return;
if (Currentbuf->firstLine == NULL)
return;
l = Currentbuf->currentLine;
@@ -2152,6 +2154,8 @@ _mark(void)
static void
cmd_mark(Lineprop * p)
{
+ if (! use_mark)
+ return;
if ((*p & PM_MARK) && (*p & PE_STAND))
*p &= ~PE_STAND;
else if (!(*p & PM_MARK) && !(*p & PE_STAND))
@@ -2166,6 +2170,8 @@ nextMk(void)
Line *l;
int i;
+ if (! use_mark)
+ return;
if (Currentbuf->firstLine == NULL)
return;
i = Currentbuf->pos + 1;
@@ -2197,6 +2203,8 @@ prevMk(void)
Line *l;
int i;
+ if (! use_mark)
+ return;
if (Currentbuf->firstLine == NULL)
return;
i = Currentbuf->pos - 1;
@@ -2231,6 +2239,8 @@ reMark(void)
char *str;
char *p, *p1, *p2;
+ if (! use_mark)
+ return;
str = inputStrHist("(Mark)Regexp: ", MarkString, TextHist);
if (str == NULL || *str == '\0') {
displayBuffer(Currentbuf, B_NORMAL);