aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/erc/erc-backend.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index 0e3495e139a..526e854beca 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -466,7 +466,8 @@ If this is set to nil, never try to reconnect."
466The length is specified in `erc-split-line-length'. 466The length is specified in `erc-split-line-length'.
467 467
468Currently this is called by `erc-send-input'." 468Currently this is called by `erc-send-input'."
469 (let ((charset (car (erc-coding-system-for-target nil)))) 469 (let* ((coding (erc-coding-system-for-target nil))
470 (charset (if (consp coding) (car coding) coding)))
470 (with-temp-buffer 471 (with-temp-buffer
471 (insert longline) 472 (insert longline)
472 ;; The line lengths are in octets, not characters (because these 473 ;; The line lengths are in octets, not characters (because these