Hi, in one of my former patches that added or modified the selection actions I introduced a problem where it was not possible to select the first entry in a document.
This is fixed by this patch.
2006-02-20 Robert Schuster <[EMAIL PROTECTED]>
* javax/swing/text/DefaultEditorKit.java: Fixed comparison
in backward selection action.
cya
Robert
Index: javax/swing/text/DefaultEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/DefaultEditorKit.java,v
retrieving revision 1.29
diff -u -r1.29 DefaultEditorKit.java
--- javax/swing/text/DefaultEditorKit.java 16 Feb 2006 08:45:28 -0000 1.29
+++ javax/swing/text/DefaultEditorKit.java 20 Feb 2006 21:16:38 -0000
@@ -908,7 +908,7 @@
{
int offs = t.getCaretPosition() - 1;
- if(offs > 0)
+ if(offs >= 0)
{
Caret c = t.getCaret();
c.moveDot(offs);
signature.asc
Description: OpenPGP digital signature
