瀏覽代碼

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
                     }
303
                     }
304
                 } else {
304
                 } else {
305
                     //loop the whole line
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…
取消
儲存