|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
|
2
|
/*
|
2
|
3
|
* Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
|
3
|
4
|
*
|
|
@@ -461,11 +462,15 @@ class TextPaneCanvas extends JPanel implements MouseInputListener,
|
461
|
462
|
selection.setEndLine(lineInfo.getLine());
|
462
|
463
|
selection.setStartPos(start);
|
463
|
464
|
selection.setEndPos(end);
|
|
465
|
+ textPane.copy();
|
|
466
|
+ textPane.clearSelection();
|
464
|
467
|
} else if (e.getClickCount() == 3) {
|
465
|
468
|
selection.setStartLine(lineInfo.getLine());
|
466
|
469
|
selection.setEndLine(lineInfo.getLine());
|
467
|
470
|
selection.setStartPos(0);
|
468
|
471
|
selection.setEndPos(clickedText.length());
|
|
472
|
+ textPane.copy();
|
|
473
|
+ textPane.clearSelection();
|
469
|
474
|
}
|
470
|
475
|
}
|
471
|
476
|
|