summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2019-03-12 10:48:19 +0100
committerMartin Rudalics <rudalics@gmx.at>2019-03-12 10:48:19 +0100
commitd58c29b345b40b836eeb0d9452a5940beda01fff (patch)
tree45fd7e334ebd2353b7acba9d7b62c949805280b6 /lisp/comint.el
parent1d65985a2b758ba41fe4a7965a282861d7b23d0a (diff)
downloademacs-d58c29b345b40b836eeb0d9452a5940beda01fff.tar.gz
Revert last tweak in 'comint-output-filter'
* lisp/comint.el (comint-output-filter): Revert last tweak because it can hang gdb indefinitely.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el2
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."
(prompt-re (concat "\\`" (regexp-quote prompt))))
(while (string-match prompt-re string)
(setq string (substring string (match-end 0)))))))
- (while (string-match (concat "\\(" comint-prompt-regexp
+ (while (string-match (concat "\\(^" comint-prompt-regexp
"\\)\\1+")
string)
(setq string (replace-match "\\1" nil nil string)))