Do not reset input ring if one exists

Fixes: debbugs:18599
This commit is contained in:
Ivan Shmakov
2014-10-02 07:31:56 -04:00
committed by Kelvin White
parent 5f8947c700
commit 3af2917c91
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2014-10-02 Kelvin White <kwhite@gnu.org>
* erc-ring.el (erc-input-ring-setup): Fixes Bug #18599
2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
* erc-track.el (erc-modified-channels-display): Update all mode lines

View File

@@ -67,7 +67,8 @@ variable.")
(defun erc-input-ring-setup ()
"Do the setup required so that we can use comint style input rings.
Call this function when setting up the mode."
(setq erc-input-ring (make-ring comint-input-ring-size))
(unless (ring-p erc-input-ring)
(setq erc-input-ring (make-ring comint-input-ring-size)))
(setq erc-input-ring-index nil))
(defun erc-add-to-input-ring (s)