From 7adf2a49d3b247f424b7a9c2fab24a82418bbb8e Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Mon, 11 Jan 2021 11:09:30 -0800 Subject: [PATCH] comint-read-input-ring: Simplify last commit * lisp/comint.el (comint-read-input-ring): Simplify. It is not necessary to use `goto-char' again since we have already moved point to the desired location. --- lisp/comint.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index 3476fd146c..53153af7d2 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1000,7 +1000,6 @@ comint-read-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) -- 2.29.2