summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 04:57:45 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 04:57:45 +0800
commitf3021d4093e35eace1044c6517cf69687acde46d (patch)
treea56d03b5757c53150e97473a543acdc600a754b4
parent77977eec595648e9143769c7993c65490b753b99 (diff)
downloadpttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar.gz
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar.bz2
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar.lz
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar.xz
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.tar.zst
pttbbs-f3021d4093e35eace1044c6517cf69687acde46d.zip
add function to skip dummy post when reading
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/read.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 40561cb8..06ed39b7 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -907,36 +907,42 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey
{
case READ_PREV:
default_ch = 'r';
+ lastmode = mode;
mode = cursor_pos(locmem, locmem->crs_ln - 1, 10);
break;
case READ_NEXT:
default_ch = 'r';
+ lastmode = mode;
mode = cursor_pos(locmem, locmem->crs_ln + 1, 10);
break;
case RELATE_PREV:
default_ch = 'r';
+ lastmode = mode;
mode = thread(locmem, RELATE_PREV, &locmem->crs_ln);
break;
case RELATE_NEXT:
default_ch = 'r';
+ lastmode = mode;
mode = thread(locmem, RELATE_NEXT, &locmem->crs_ln);
break;
case RELATE_FIRST:
default_ch = 'r';
+ lastmode = mode;
mode = thread(locmem, RELATE_FIRST, &locmem->crs_ln);
break;
case 'A':
default_ch = 'r';
+ lastmode = mode;
mode = thread(locmem, 'A', &locmem->crs_ln);
break;
case 'a':
default_ch = 'r';
+ lastmode = mode;
mode = thread(locmem, 'a', &locmem->crs_ln);
break;
default:
default_ch=0;
}
- lastmode = mode;
} while (mode != DOQUIT);
#undef FHSZ