Revision: 3119
http://jnode.svn.sourceforge.net/jnode/?rev=3119&view=rev
Author: fduminy
Date: 2007-02-11 14:25:20 -0800 (Sun, 11 Feb 2007)
Log Message:
-----------
fixed bug in splitInColumns method
Modified Paths:
--------------
trunk/shell/src/shell/org/jnode/shell/Line.java
Modified: trunk/shell/src/shell/org/jnode/shell/Line.java
===================================================================
--- trunk/shell/src/shell/org/jnode/shell/Line.java 2007-02-11 22:23:44 UTC (rev 3118)
+++ trunk/shell/src/shell/org/jnode/shell/Line.java 2007-02-11 22:25:20 UTC (rev 3119)
@@ -213,7 +213,7 @@
}
}
- final int columnWidth = maxWidth + separatorWidth;
+ final int columnWidth = Math.min(SCREEN_WIDTH, maxWidth + separatorWidth);
final int nbColumns = SCREEN_WIDTH / columnWidth;
final boolean lastLineIsFull = ((items.length % nbColumns) == 0);
final int nbLines = (items.length / nbColumns) + (lastLineIsFull ? 0 : 1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|