Index: WrappedPlainView.java =================================================================== RCS file: /sources/classpath/classpath/javax/swing/text/WrappedPlainView.java,v retrieving revision 1.19 diff -u -r1.19 WrappedPlainView.java --- WrappedPlainView.java 2 May 2006 20:31:08 -0000 1.19 +++ WrappedPlainView.java 3 May 2006 08:22:38 -0000 @@ -563,7 +563,8 @@ // If pos is between currLineStart and currLineEnd then just find // the width of the text from currLineStart to pos and add that // to rect.x - if (pos >= currLineStart && pos < currLineEnd) + if (pos >= currLineStart && pos < currLineEnd || + (currLineEnd==currLineStart) ) { try {