From 55dc11d584c1995a53fd90002e4a1184d2b1cdfe Mon Sep 17 00:00:00 2001 From: ptt Date: Sat, 24 Apr 2004 03:02:32 +0000 Subject: fix for foreverloop git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/read.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mbbsd/read.c b/mbbsd/read.c index 133c85b5..9e698a4c 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -904,6 +904,7 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey if(mode == READ_SKIP) mode = lastmode; // 以下這幾種 mode 要再處理游標 + default_ch=0; if(mode == READ_PREV || mode == READ_NEXT || mode == RELATE_PREV || mode == RELATE_FIRST || mode == 'A' || mode == 'a' ) { @@ -934,10 +935,8 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey mode = thread(locmem, 'a', &locmem->crs_ln); break; } - if(locmem->crs_ln != last_ln) default_ch = 'r'; + if(locmem->crs_ln != last_ln) default_ch = 'r'; } - else - default_ch=0; } while (mode != DOQUIT); #undef FHSZ -- cgit v1.2.3