summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 11:02:32 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 11:02:32 +0800
commit55dc11d584c1995a53fd90002e4a1184d2b1cdfe (patch)
tree0a84e9b26d66006c4c1d7671dd7a9c60a437e7c9 /mbbsd
parent6d2bbbc9932595ea1a0ef4732864d077c01ff010 (diff)
downloadpttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar.gz
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar.bz2
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar.lz
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar.xz
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.tar.zst
pttbbs-55dc11d584c1995a53fd90002e4a1184d2b1cdfe.zip
fix for foreverloop
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/read.c5
1 files 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