Browse Source

Fix another edge case with copying.

pull/341/head
Chris Smith 9 years ago
parent
commit
361678eaf8
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ui_swing/src/com/dmdirc/addons/ui_swing/textpane/TextPane.java

+ 2
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/textpane/TextPane.java View File

@@ -303,7 +303,8 @@ public final class TextPane extends JComponent implements MouseWheelListener,
303 303
                     }
304 304
                 } else {
305 305
                     //loop the whole line
306
-                    selectedText.append(getText(line, 0, line.length(), styled));
306
+                    final int length = Styliser.stipControlCodes(line).length();
307
+                    selectedText.append(getText(line, 0, length, styled));
307 308
                 }
308 309
             }
309 310
         }

Loading…
Cancel
Save