From: <kp...@us...> - 2007-02-20 22:26:03
|
Revision: 8997 http://svn.sourceforge.net/jedit/?rev=8997&view=rev Author: kpouer Date: 2007-02-20 14:26:00 -0800 (Tue, 20 Feb 2007) Log Message: ----------- comment & logs Modified Paths: -------------- jEdit/trunk/org/gjt/sp/jedit/textarea/FirstLine.java Modified: jEdit/trunk/org/gjt/sp/jedit/textarea/FirstLine.java =================================================================== --- jEdit/trunk/org/gjt/sp/jedit/textarea/FirstLine.java 2007-02-20 22:24:52 UTC (rev 8996) +++ jEdit/trunk/org/gjt/sp/jedit/textarea/FirstLine.java 2007-02-20 22:26:00 UTC (rev 8997) @@ -292,16 +292,19 @@ void scrollUp(int amount) { if(Debug.SCROLL_DEBUG) - Log.log(Log.DEBUG,this,"scrollUp()"); + Log.log(Log.DEBUG,this,"scrollUp() before:" + this); ensurePhysicalLineIsVisible(); if(amount <= skew) { + // the amount is less than the skew, so we stay in the same like, just going + // upper skew -= amount; } else { + // moving to the first screen line of the current physical line amount -= skew; skew = 0; @@ -310,6 +313,7 @@ int prevLine = displayManager.getPrevVisibleLine(physicalLine); if(prevLine == -1) break; + // moving to the previous visible physical line physicalLine = prevLine; int screenLines = displayManager.getScreenLineCount(physicalLine); @@ -324,6 +328,8 @@ } } + if(Debug.SCROLL_DEBUG) + Log.log(Log.DEBUG,this,"scrollUp() after:" + this); callChanged = true; } //}}} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |