Don't infloop in comint-redirect-results-list-from-process
* lisp/comint.el (comint-redirect-results-list-from-process): Ensure forward progress (bug#45950).
This commit is contained in:
parent
973799f179
commit
43982a8f10
1 changed files with 5 additions and 1 deletions
|
@ -3863,7 +3863,11 @@ REGEXP-GROUP is the regular expression group in REGEXP to use."
|
|||
(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))))
|
||||
|
||||
;; Converting process modes to use comint mode
|
||||
|
|
Loading…
Add table
Reference in a new issue