diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 16:11:35 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 16:11:35 +0000 |
commit | d4cc6b84dcb6704de0b5cb251fc71b188b1180e6 (patch) | |
tree | 7296753d266e2f1ceec8fef8ef7d4638428cbdf2 | |
parent | [w3m-dev 02854] highlight for incremental search (diff) | |
download | w3m-d4cc6b84dcb6704de0b5cb251fc71b188b1180e6.tar.gz w3m-d4cc6b84dcb6704de0b5cb251fc71b188b1180e6.zip |
[w3m-dev 02855]
* main.c (dispincsrch): for C-s C-s, revert some changes
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | main.c | 17 |
2 files changed, 16 insertions, 8 deletions
@@ -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 @@ -2035,4 +2040,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.229 2002/01/16 15:37:06 ukai Exp $ +$Id: ChangeLog,v 1.230 2002/01/16 16:11:35 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.60 2002/01/16 15:37:06 ukai Exp $ */ +/* $Id: main.c,v 1.61 2002/01/16 16:11:38 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -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; } |