aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--local.c4
-rw-r--r--main.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/local.c b/local.c
index 69a31ba..f7d49e5 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.29 2003/04/08 16:01:39 ukai Exp $ */
+/* $Id: local.c,v 1.30 2003/05/12 16:34:12 ukai Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -50,7 +50,7 @@ localCookie()
char hostname[256];
if (Local_cookie)
- return Local_cookie;
+ return Local_cookie;
gethostname(hostname, 256);
srand48((long)New(char) + (long)time(NULL));
Local_cookie = Sprintf("%ld@%s", lrand48(), hostname);
diff --git a/main.c b/main.c
index 00a0764..0c7df14 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.225 2003/05/06 16:35:36 ukai Exp $ */
+/* $Id: main.c,v 1.226 2003/05/12 16:34:12 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -1626,11 +1626,11 @@ dispincsrch(int ch, Str buf, Lineprop *prop)
if (searchRoutine == forwardSearch)
Currentbuf->pos += 1;
SAVE_BUFPOSITION(&sbuf);
- if (srchcore(str, searchRoutine) == SR_NOTFOUND
+ if (srchcore(str, searchRoutine) == SR_NOTFOUND
&& searchRoutine == forwardSearch) {
- Currentbuf->pos -= 1;
- SAVE_BUFPOSITION(&sbuf);
- }
+ Currentbuf->pos -= 1;
+ SAVE_BUFPOSITION(&sbuf);
+ }
arrangeCursor(Currentbuf);
displayBuffer(Currentbuf, B_FORCE_REDRAW);
clear_mark(Currentbuf->currentLine);