summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-05 00:19:46 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-05 00:19:46 +0800
commitb0f2674ad9f763b8a6252f5a4b2925ff9432816b (patch)
tree377a88fa954ac6c1d218819a3a1fb6340e5dfc43 /mbbsd
parentd5b24eed395d4c949e05d675fcf3028cd21b8b4f (diff)
downloadpttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar.gz
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar.bz2
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar.lz
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar.xz
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.tar.zst
pttbbs-b0f2674ad9f763b8a6252f5a4b2925ff9432816b.zip
pmore: workaround with wrap-1-line issue for old seperator mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2763 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/pmore.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index c168c304..db92c9eb 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -788,7 +788,8 @@ mf_disp()
* leads to slow display (we cannt speed it up with
* optimized scrolling.
*/
- if(bpref.oldseperator && bpref.wrapmode == MFDISP_WRAP_WRAP)
+ if(bpref.oldseperator
+ && bpref.wrapmode == MFDISP_WRAP_WRAP)
{
/* we have to do all wrapping stuff
* in normal text section.
@@ -1050,7 +1051,17 @@ mf_disp()
*/
if(mf.disps == mf.maxdisps && mf.dispe < mf.end)
{
- mf_determinemaxdisps(0);
+ /* never mind if that's caused by oldseperator
+ */
+ if (bpref.oldseperator &&
+ mf.wraplines == 1 &&
+ mf.lineno < fh.lines)
+ {
+ /* cheat user. the last line will be dropped but ok. */
+ mf.dispe = mf.end;
+ } else {
+ mf_determinemaxdisps(0);
+ }
}
mf.oldlineno = mf.lineno;
}