commit ad0751f00b0d7617231e3628a82c04f7740bdda2
parent 84850d09c4b90de9ea234ad7943404127e220d5c
Author: ukai <ukai>
Date: Wed, 16 Jan 2002 16:11:35 +0000
[w3m-dev 02855]
* main.c (dispincsrch): for C-s C-s, revert some changes
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-17 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 02855]
+ * main.c (dispincsrch): for C-s C-s, revert some changes
+
2002-01-17 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02854] highlight for incremental search
diff --git a/main.c b/main.c
@@ -1432,8 +1432,8 @@ dispincsrch(int ch, Str buf)
}
if (do_next_search) {
- SAVE_BUFPOSITION(&sbuf);
if (*str) {
+ SAVE_BUFPOSITION(&sbuf);
srchcore(str, searchRoutine);
arrangeCursor(Currentbuf);
if (Currentbuf->currentLine == currentLine
@@ -1442,15 +1442,18 @@ dispincsrch(int ch, Str buf)
srchcore(str, searchRoutine);
arrangeCursor(Currentbuf);
}
+ displayBuffer(Currentbuf, B_FORCE_REDRAW);
+ clear_mark(Currentbuf->currentLine);
+ return -1;
}
+ else
+ return 020; /* _prev completion for C-s C-s */
}
- else {
+ else if (*str) {
RESTORE_BUFPOSITION(&sbuf);
arrangeCursor(Currentbuf);
- if (*str) {
- srchcore(str, searchRoutine);
- arrangeCursor(Currentbuf);
- }
+ srchcore(str, searchRoutine);
+ arrangeCursor(Currentbuf);
currentLine = Currentbuf->currentLine;
pos = Currentbuf->pos;
}