[Ttssh2-commit] [3321] Scroll Regionが設定されている時の最下行以外では自動スクロールしない処理を修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 16日 (木) 14:18:56 JST


Revision: 3321
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3321
Author:   salarm
Date:     2009-04-16 14:18:56 +0900 (Thu, 16 Apr 2009)

Log Message:
-----------
Scroll Regionが設定されている時の最下行以外では自動スクロールしない処理を修正
・最下行でないときに画面が流れていかないように修正

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/buffer.c
===================================================================
--- trunk/teraterm/teraterm/buffer.c	2009-04-16 03:51:23 UTC (rev 3320)
+++ trunk/teraterm/teraterm/buffer.c	2009-04-16 05:18:56 UTC (rev 3321)
@@ -1750,16 +1750,25 @@
   {
     WinOrgY = WinOrgY-n;
     /* Å‰ºs‚Å‚¾‚¯Ž©“®ƒXƒNƒ[ƒ‹‚·‚é */
-	if (ts.AutoScrollOnlyInBottomLine != 0 && NewOrgY != 0) {
-		NewOrgY = WinOrgY;
-	}
+    if (ts.AutoScrollOnlyInBottomLine != 0 && NewOrgY != 0) {
+      NewOrgY = WinOrgY;
+    }
     BuffScroll(n,CursorBottom);
     DispCountScroll(n);
   }
   else if ((CursorTop==0) && (CursorY<=CursorBottom))
   {
-    BuffScroll(n,CursorBottom);
-    DispScrollNLines(WinOrgY,CursorBottom,n);
+    /* Å‰ºs‚Å‚¾‚¯Ž©“®ƒXƒNƒ[ƒ‹‚·‚é */
+    if (ts.AutoScrollOnlyInBottomLine != 0 && NewOrgY != 0) {
+      /* ƒXƒNƒ[ƒ‹‚³‚¹‚È‚¢ê‡‚̏ˆ— */
+      WinOrgY = WinOrgY-n;
+      NewOrgY = WinOrgY;
+      BuffScroll(n,CursorBottom);
+      DispCountScroll(n);
+    } else {
+      BuffScroll(n,CursorBottom);
+      DispScrollNLines(WinOrgY,CursorBottom,n);
+    }
   }
   else if ((CursorTop<=CursorY) && (CursorY<=CursorBottom))
   {



Ttssh2-commit メーリングリストの案内
Back to archive index