diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-10 19:35:30 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-10 19:35:30 +0800 |
commit | 3d69aee94aee5760c42e23dfbdc9f460fff6c4f0 (patch) | |
tree | 45eabe8f4306317d7876dcee8065bd9c48b39c5b | |
parent | a718070f551df52347cadf83eaa09c2f4e1bbe29 (diff) | |
download | pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar.gz pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar.bz2 pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar.lz pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar.xz pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.tar.zst pttbbs-3d69aee94aee5760c42e23dfbdc9f460fff6c4f0.zip |
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
-rw-r--r-- | mbbsd/pmore.c | 17 |
1 files changed, 14 insertions, 3 deletions
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: |