From f793f25ce60f90f2413546a170203bcc5403e77e Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 24 Apr 2002 11:16:30 +0000 Subject: kcwu's patch git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@127 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/more.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/more.c') diff --git a/mbbsd/more.c b/mbbsd/more.c index b0c57611..e072dac4 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,4 +1,4 @@ -/* $Id: more.c,v 1.9 2002/04/18 21:27:23 in2 Exp $ */ +/* $Id: more.c,v 1.10 2002/04/24 11:16:30 in2 Exp $ */ #include #include #include @@ -275,7 +275,7 @@ int more(char *fpath, int promptend) { prints("\033[47;34m %s \033[44;37m%-53.53s" "\033[47;34m %.4s \033[44;37m%-13s\033[m\n", head[0], word, ptr, ptr + 5); - } else if (pos < 4) + } else if (pos < line) prints("\033[47;34m %s \033[44;37m%-72.72s" "\033[m\n", head[pos], word); @@ -297,7 +297,7 @@ int more(char *fpath, int promptend) { header = 1; prints("\033[36m%s\033[m\n", msg_seperator); - line = pos = 4; + ++line; ++pos; } } lino = pos; -- cgit v1.2.3