From f665f13b5bdcb87f19a0681481f6044cbcc109b9 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 17 Dec 2007 03:26:22 +0000 Subject: - general message update and optimization - change search_num() to getdata(), allow unified control git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3698 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/screen.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'mbbsd/screen.c') diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 9a8f74e5..853d3110 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -45,6 +45,9 @@ move_ansi(int y, int x) return; slp = &big_picture[y]; + if (slp->len < 1) + return; + slp->data[slp->len] = 0; x += (strlen((char*)slp->data) - strlen_noansi((char*)slp->data)); cur_col = x; @@ -246,9 +249,9 @@ refresh(void) #endif // DBCSAWARE #if 0 - // disable now, bugs: - // (1) pmore scrolling failed - // (2) input number (goto) in bbs list (search_num) + // disabled now, bugs: + // (1) input number (goto) in bbs list (search_num) + // (2) some empty lines becomes weird (eg, b_config) // // more effort to determine ANSI smod if (bp->smod > 0) @@ -258,12 +261,13 @@ refresh(void) { if (bp->data[iesc] == ESC_CHR) { - bp->smod = iesc; + bp->smod = 0;// iesc; + bp->emod =len -1; break; } } } -#endif +#endif if (bp->emod >= len) bp->emod = len - 1; -- cgit v1.2.3