diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-04 15:46:58 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-04 15:46:58 +0800 |
commit | 32582a2d08802d587212960804a100e9ff9935bb (patch) | |
tree | d91ad9b83d940603d74b393a3370136182e7d699 /mbbsd/more.c | |
parent | f4c8261b0d953bf77efe165ad4ad511191447d13 (diff) | |
download | pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar.gz pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar.bz2 pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar.lz pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar.xz pttbbs-32582a2d08802d587212960804a100e9ff9935bb.tar.zst pttbbs-32582a2d08802d587212960804a100e9ff9935bb.zip |
Avoid FILE * leak
Update screen on exit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4338 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-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 e758c82c..d1487a5d 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -202,12 +202,12 @@ int more(const char *fpath, int promptend) case KEY_PGDN: case Ctrl('F'): case ' ': case KEY_RIGHT: - if (showall) return READ_NEXT; + if (showall) abort = READ_NEXT; lineno += t_lines-2; break; case KEY_DOWN: case 'k': case Ctrl('N'): - if (showall) return READ_NEXT; + if (showall) abort = READ_NEXT; lineno++; break; case KEY_HOME: case Ctrl('A'): @@ -217,7 +217,7 @@ int more(const char *fpath, int promptend) lineno = lines - (t_lines-1); break; case KEY_LEFT: case 'q': - abort = -1; + abort = FULLUPDATE; break; } if (lineno + (t_lines-1) >= lines) |