From cac7c3c652830457b696298d9edd7e5c56111f24 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 4 Jun 2005 11:18:20 +0000 Subject: pmore: post fix to make it more like old pager. for promptend behavior. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2758 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/pmore.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 1ddaaae7..c856fbd4 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -68,6 +68,7 @@ //#define PMORE_TRADITIONAL_SEPERATOR // display seperator with extra space //#define PMORE_TRADITIONAL_STATUSBAR // if you really love that +#define PMORE_TRADITIONAL_PROMPTEND // when prompt=NA, show only page 1 // -------------------------------------------------------------- //#define DEBUG @@ -1069,9 +1070,13 @@ pmore(char *fpath, int promptend) { mf_disp(); +#ifdef PMORE_TRADITIONAL_PROMPTEND + if(promptend == NA) // && mf_viewedAll()) + break; +#else if(promptend == NA && mf_viewedAll()) break; - +#endif move(b_lines, 0); // clrtoeol(); // this shall be done in mf_disp to speed up. -- cgit v1.2.3