[Ttssh2-commit] [4095] DECERA, DECSERA で、Origin Mode 時の動作が正しくなるように修正。

svnno****@sourc***** svnno****@sourc*****
2010年 9月 7日 (火) 20:17:10 JST


Revision: 4095
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4095
Author:   doda
Date:     2010-09-07 20:17:10 +0900 (Tue, 07 Sep 2010)

Log Message:
-----------
DECERA, DECSERA で、Origin Mode 時の動作が正しくなるように修正。

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2010-09-07 10:43:51 UTC (rev 4094)
+++ trunk/teraterm/teraterm/vtterm.c	2010-09-07 11:17:10 UTC (rev 4095)
@@ -2524,6 +2524,16 @@
 	if (Param[2] < 1 || NParam < 2) Param[2]=1;
 	if (Param[3] < 1 || NParam < 3) Param[3]=1;
 	if (Param[4] < 1 || NParam < 4) Param[4]=1;
+	if (RelativeOrgMode) {
+	  Param[1] += CursorTop;
+	  if (Param[1] > CursorBottom) {
+	    Param[1] = CursorBottom + 1;
+	  }
+	  Param[3] += CursorTop;
+	  if (Param[3] > CursorBottom) {
+	    Param[3] = CursorBottom + 1;
+	  }
+	}
 	BuffEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
 	break;
 
@@ -2532,6 +2542,16 @@
 	if (Param[2] < 1 || NParam < 2) Param[2]=1;
 	if (Param[3] < 1 || NParam < 3) Param[3]=1;
 	if (Param[4] < 1 || NParam < 4) Param[4]=1;
+	if (RelativeOrgMode) {
+	  Param[1] += CursorTop;
+	  if (Param[1] > CursorBottom) {
+	    Param[1] = CursorBottom + 1;
+	  }
+	  Param[3] += CursorTop;
+	  if (Param[3] > CursorBottom) {
+	    Param[3] = CursorBottom + 1;
+	  }
+	}
 	BuffSelectEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
 	break;
 



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