Commit 78ef0a72 authored by Brian Leung's avatar Brian Leung Committed by Lars Ingebrigtsen

comint-read-input-ring: Simplify last commit

* lisp/comint.el (comint-read-input-ring): It is not necessary to use
  `goto-char' again since we have already moved point to the desired
  location (bug#45797).
parent d8936322
Pipeline #8663 failed with stage
in 70 minutes and 44 seconds
......@@ -1000,7 +1000,6 @@ See also `comint-input-ignoredups' and `comint-write-input-ring'."
(goto-char (match-end 0)))
(setq start (point))
(setq history (buffer-substring start end))
(goto-char start)
(when (and (not (string-match history-ignore history))
(or (null ignoredups)
(ring-empty-p ring)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment