From b0f2674ad9f763b8a6252f5a4b2925ff9432816b Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 4 Jun 2005 16:19:46 +0000 Subject: 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 --- mbbsd/pmore.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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; } -- cgit v1.2.3