Przeglądaj źródła

Fix another edge case with copying.

pull/341/head
Chris Smith 9 lat temu
rodzic
commit
361678eaf8

+ 2
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/textpane/TextPane.java Wyświetl plik

@@ -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
         }

Ładowanie…
Anuluj
Zapisz