diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index ff04c05edff..a34b0bb2d48 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -477,7 +477,7 @@ off the specialized speedbar mode." ;; gud-marker-acc until we receive the rest of it. Since we ;; know the full marker regexp above failed, it's pretty simple to ;; test for marker starts. - (if (string-match "\032.*\\'" gud-marker-acc) + (if (string-match "\n\\(\032.*\\)?\\'" gud-marker-acc) (progn ;; Everything before the potential marker start can be output. (setq output (concat output (substring gud-marker-acc