svnno****@sourc*****
svnno****@sourc*****
2011年 3月 8日 (火) 19:09:06 JST
Revision: 4377 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4377 Author: doda Date: 2011-03-08 19:09:06 +0900 (Tue, 08 Mar 2011) Log Message: ----------- Term size = win size ããªãã®æã¯ãAuto scroll only in bottom line ãç¡å¹ã«ãªãããã«ããã http://sourceforge.jp/ticket/browse.php?group_id=1412&tid=24493 # æ«å®ãåä½ãã¡ããã¨å®ç¾©ã§ãããªãã°å¯¾å¿ãããã¨ããã ããã©ãã¤ã¡ã¼ã¸ããããªãã Modified Paths: -------------- trunk/teraterm/teraterm/buffer.c trunk/teraterm/teraterm/vtdisp.c trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/buffer.c =================================================================== --- trunk/teraterm/teraterm/buffer.c 2011-03-08 04:47:31 UTC (rev 4376) +++ trunk/teraterm/teraterm/buffer.c 2011-03-08 10:09:06 UTC (rev 4377) @@ -1766,7 +1766,7 @@ Wrap = FALSE; /* źsž¯©®XN[·é*/ - if (ts.AutoScrollOnlyInBottomLine == 0 || WinOrgY == 0) { + if (!(ts.AutoScrollOnlyInBottomLine && ts.TermIsWin) || WinOrgY == 0) { DispScrollToCursor(CursorX, CursorY); } } @@ -1777,7 +1777,7 @@ { CursorX++; /* źsž¯©®XN[·é */ - if (ts.AutoScrollOnlyInBottomLine == 0 || WinOrgY == 0) { + if (!(ts.AutoScrollOnlyInBottomLine && ts.TermIsWin) || WinOrgY == 0) { DispScrollToCursor(CursorX, CursorY); } } @@ -1832,7 +1832,7 @@ if ((CursorTop == 0) && (CursorBottom == NumOfLines-1)) { WinOrgY = WinOrgY-n; /* źsž¯©®XN[·é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && NewOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && NewOrgY != 0) { NewOrgY = WinOrgY; } BuffScroll(n,CursorBottom); @@ -1840,7 +1840,7 @@ } else if ((CursorTop==0) && (CursorY<=CursorBottom)) { /* źsž¯©®XN[·é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && NewOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && NewOrgY != 0) { /* XN[³¹È¢êÌ */ WinOrgY = WinOrgY-n; NewOrgY = WinOrgY; Modified: trunk/teraterm/teraterm/vtdisp.c =================================================================== --- trunk/teraterm/teraterm/vtdisp.c 2011-03-08 04:47:31 UTC (rev 4376) +++ trunk/teraterm/teraterm/vtdisp.c 2011-03-08 10:09:06 UTC (rev 4377) @@ -3144,7 +3144,7 @@ /* źsž¯©®XN[·éÝèÌê NewOrgYªÏ»µÄ¢ÈÄàobt@sªÏ»·éÌÅXV·é */ - if (ts.AutoScrollOnlyInBottomLine != 0) + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin) { if ((BuffEnd==WinHeight) && (ts.EnableScrollBuff>0)) @@ -3188,7 +3188,7 @@ if (NewOrgX!=WinOrgX) SetScrollPos(HVTWin,SB_HORZ,NewOrgX,TRUE); - if (ts.AutoScrollOnlyInBottomLine == 0 && NewOrgY!=WinOrgY) + if (!(ts.AutoScrollOnlyInBottomLine && ts.TermIsWin) && NewOrgY!=WinOrgY) { if ((BuffEnd==WinHeight) && (ts.EnableScrollBuff>0)) Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2011-03-08 04:47:31 UTC (rev 4376) +++ trunk/teraterm/teraterm/vtwin.cpp 2011-03-08 10:09:06 UTC (rev 4377) @@ -787,7 +787,7 @@ CBStartPaste(HVTWin, FALSE, BracketedPasteMode(), 0, NULL, 0); /* źsž¯©®XN[·éÝèÌê y[XgÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } } @@ -797,7 +797,7 @@ CBStartPaste(HVTWin, FALSE, BracketedPasteMode(), 0, NULL, 0); /* źsž¯©®XN[·éÝèÌê y[XgÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } } @@ -1707,7 +1707,7 @@ /* źsž¯©®XN[·éÝèÌê [gÖÌL[üÍMÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } } @@ -2004,7 +2004,7 @@ case KEYDOWN_COMMOUT: /* źsž¯©®XN[·éÝèÌê [gÖÌL[üÍMÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } return; @@ -3975,7 +3975,7 @@ CBStartPaste(HVTWin, FALSE, BracketedPasteMode(), 0, NULL, 0); /* źsž¯©®XN[·éÝèÌê y[XgÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } } @@ -3988,7 +3988,7 @@ CBStartPaste(HVTWin, TRUE, BracketedPasteMode(), 0, NULL, 0); /* źsž¯©®XN[·éÝèÌê y[XgÅXN[³¹é */ - if (ts.AutoScrollOnlyInBottomLine != 0 && WinOrgY != 0) { + if (ts.AutoScrollOnlyInBottomLine && ts.TermIsWin && WinOrgY != 0) { DispVScroll(SCROLL_BOTTOM, 0); } }