diff options
| -rw-r--r-- | lisp/comint.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index e5012be982b..a5fca7ea2a1 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2081,7 +2081,7 @@ Make backspaces delete the previous character." | |||
| 2081 | (prompt-re (concat "\\`" (regexp-quote prompt)))) | 2081 | (prompt-re (concat "\\`" (regexp-quote prompt)))) |
| 2082 | (while (string-match prompt-re string) | 2082 | (while (string-match prompt-re string) |
| 2083 | (setq string (substring string (match-end 0))))))) | 2083 | (setq string (substring string (match-end 0))))))) |
| 2084 | (while (string-match (concat "\\(" comint-prompt-regexp | 2084 | (while (string-match (concat "\\(^" comint-prompt-regexp |
| 2085 | "\\)\\1+") | 2085 | "\\)\\1+") |
| 2086 | string) | 2086 | string) |
| 2087 | (setq string (replace-match "\\1" nil nil string))) | 2087 | (setq string (replace-match "\\1" nil nil string))) |