From 3d69aee94aee5760c42e23dfbdc9f460fff6c4f0 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 10 Jun 2005 11:35:30 +0000 Subject: pmore: small fix for raw ansi mode in widenav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/pmore.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'mbbsd/pmore.c') diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index ea3a11b1..b236d0e6 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -1149,7 +1149,13 @@ mf_display() if(col < t_columns) { /* we tried our best to determine */ - outc(c); col++; + if(xprefix > 0) + xprefix --; + else + { + outc(c); + col++; + } } if(!inAnsi) outs(ANSI_RESET); @@ -1223,8 +1229,13 @@ mf_display() if(col < t_columns) { /* we tried our best to determine */ - outs(ANSI_COLOR(1) "*"); - col++; + if(xprefix > 0) + xprefix --; + else + { + outs(ANSI_COLOR(1) "*"); + col++; + } } break; case MFDISP_RAW_PLAIN: -- cgit v1.2.3