]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert last tweak in 'comint-output-filter'
authorMartin Rudalics <rudalics@gmx.at>
Tue, 12 Mar 2019 09:48:19 +0000 (10:48 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 12 Mar 2019 09:48:19 +0000 (10:48 +0100)
* lisp/comint.el (comint-output-filter): Revert last tweak because
it can hang gdb indefinitely.

lisp/comint.el

index e5012be982be235ec849d67ada43133534837b91..a5fca7ea2a16074cd117167f813c151f9387ed9b 100644 (file)
@@ -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)))