ソースを参照

Fix another edge case with copying.

pull/341/head
Chris Smith 9年前
コミット
361678eaf8
1個のファイルの変更2行の追加1行の削除
  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 ファイルの表示

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

読み込み中…
キャンセル
保存