aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/erc/ChangeLog4
-rw-r--r--lisp/erc/erc-ring.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 1ea79dbbc1a..e4f65895de9 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,7 @@
12014-10-02 Kelvin White <kwhite@gnu.org>
2
3 * erc-ring.el (erc-input-ring-setup): Fixes Bug #18599
4
12014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> 52014-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * erc-track.el (erc-modified-channels-display): Update all mode lines 7 * erc-track.el (erc-modified-channels-display): Update all mode lines
diff --git a/lisp/erc/erc-ring.el b/lisp/erc/erc-ring.el
index 1762700ff36..682585c53bb 100644
--- a/lisp/erc/erc-ring.el
+++ b/lisp/erc/erc-ring.el
@@ -67,7 +67,8 @@ variable.")
67(defun erc-input-ring-setup () 67(defun erc-input-ring-setup ()
68 "Do the setup required so that we can use comint style input rings. 68 "Do the setup required so that we can use comint style input rings.
69Call this function when setting up the mode." 69Call this function when setting up the mode."
70 (setq erc-input-ring (make-ring comint-input-ring-size)) 70 (unless (ring-p erc-input-ring)
71 (setq erc-input-ring (make-ring comint-input-ring-size)))
71 (setq erc-input-ring-index nil)) 72 (setq erc-input-ring-index nil))
72 73
73(defun erc-add-to-input-ring (s) 74(defun erc-add-to-input-ring (s)