From e485515b07b6284866689373db654007b631b6e2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 30 May 1994 12:23:10 +0000 Subject: [PATCH] (comint-read-input-ring): Make regexp stricter. --- lisp/comint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index cdf94394d4e..46a4be86c26 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -627,7 +627,7 @@ See also `comint-input-ignoredups' and `comint-write-input-ring'." (save-restriction (widen) (goto-char (point-min)) - (while (re-search-forward "^\\s *\\([^#].*\\)\\s *$" nil t) + (while (re-search-forward "^[ \t]*\\([^#\n].*\\)[ \t]*$" nil t) (let ((history (buffer-substring (match-beginning 1) (match-end 1)))) (if (or (null comint-input-ignoredups) -- 2.39.5