[Ttssh2-commit] [3767] Alternate screen buffer 使用中に横幅を縮めたとき、行末にゴミが残る場合があるのを修正。

svnno****@sourc***** svnno****@sourc*****
2010年 2月 2日 (火) 14:44:16 JST


Revision: 3767
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3767
Author:   doda
Date:     2010-02-02 14:44:16 +0900 (Tue, 02 Feb 2010)

Log Message:
-----------
Alternate screen buffer 使用中に横幅を縮めたとき、行末にゴミが残る場合があるのを修正。
# r3766 と同根

Modified Paths:
--------------
    trunk/teraterm/teraterm/buffer.c


-------------- next part --------------
Modified: trunk/teraterm/teraterm/buffer.c
===================================================================
--- trunk/teraterm/teraterm/buffer.c	2010-02-02 05:38:06 UTC (rev 3766)
+++ trunk/teraterm/teraterm/buffer.c	2010-02-02 05:44:16 UTC (rev 3767)
@@ -3247,6 +3247,10 @@
 				memcpy(&AttrBuff2[DestPtr], &AttrSrc2[SrcPtr], CopyX);
 				memcpy(&AttrBuffFG[DestPtr], &AttrSrcFG[SrcPtr], CopyX);
 				memcpy(&AttrBuffBG[DestPtr], &AttrSrcBG[SrcPtr], CopyX);
+				if (AttrBuff[DestPtr+CopyX-1] & AttrKanji) {
+					CodeBuff[DestPtr+CopyX-1] = ' ';
+					AttrBuff[DestPtr+CopyX-1] ^= AttrKanji;
+				}
 				SrcPtr += SaveBuffX;
 				DestPtr = NextLinePtr(DestPtr);
 			}



Ttssh2-commit メーリングリストの案内