* lisp/comint.el (comint-redirect-results-list-from-process):
Ensure forward progress (bug#45950).
(push (buffer-substring-no-properties
(match-beginning regexp-group)
(match-end regexp-group))
- results))
+ results)
+ (when (zerop (length (match-string 0)))
+ ;; If the regexp can be empty (for instance, "^.*$"), we
+ ;; don't advance, so ensure forward progress.
+ (forward-line 1)))
(nreverse results))))
\f
;; Converting process modes to use comint mode