diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 13:00:05 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 13:00:05 +0800 |
commit | 6dda73a2fe9b365bfd979859b924b463976a0ca6 (patch) | |
tree | 767eab15879dd3cde013489a52137f8b044b0cf5 /mbbsd | |
parent | c5495b165a64835eef37dff6c010af89499bf2a2 (diff) | |
download | pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar.gz pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar.bz2 pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar.lz pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar.xz pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.tar.zst pttbbs-6dda73a2fe9b365bfd979859b924b463976a0ca6.zip |
pass arguments only if they really need.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3099 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 75e144e8..14cf4e8c 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -845,7 +845,9 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem, if (func != NULL){ num = locmem->crs_ln - bottom_line; - if( num > 0 ){ + if(!rcmdlist[ch - 1].needitem) + mode = (*func)(); + else if( num > 0 ){ sprintf(direct,"%s.bottom", currdirect); mode= (*func)(num, &headers[locmem->crs_ln-locmem->top_ln], direct); |