diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-24 19:16:30 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-24 19:16:30 +0800 |
commit | f793f25ce60f90f2413546a170203bcc5403e77e (patch) | |
tree | 4a53534f666caff072c7820d4b87dee64424e2f1 /mbbsd | |
parent | d2609595d33f457e4705a14ac937386bbf0ecb64 (diff) | |
download | pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar.gz pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar.bz2 pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar.lz pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar.xz pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.tar.zst pttbbs-f793f25ce60f90f2413546a170203bcc5403e77e.zip |
kcwu's patch
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@127 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/more.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> @@ -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; |