]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug in gud-gdb-marker-filter: first marker does not start with \n
authorStephen Leake <stephen_leake@stephe-leake.org>
Wed, 3 Apr 2019 17:25:45 +0000 (10:25 -0700)
committerStephen Leake <stephen_leake@stephe-leake.org>
Wed, 3 Apr 2019 17:25:45 +0000 (10:25 -0700)
lisp/progmodes/gud.el

index 92f5205a6d624d4d7f2ad6c3e9a06afbcd72221e..4306f5daa02ad535efb6e9d9350b6c925318f02d 100644 (file)
@@ -678,7 +678,7 @@ The option \"--fullname\" must be included in this value."
     ;; 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 "\n\\(\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