changeset 105581:a72293bb4ac8

fix a typo in the last patch
author Sam Steingold <sds@gnu.org>
date Tue, 13 Oct 2009 02:59:19 +0000
parents 49a18cece067
children 6efa70a902f1
files lisp/progmodes/compile.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Tue Oct 13 01:13:08 2009 +0000
+++ b/lisp/progmodes/compile.el	Tue Oct 13 02:59:19 2009 +0000
@@ -991,7 +991,7 @@
           ;; note that omake usage is not limited to ocaml and C (for stubs).
           (when (and (= ?^ (aref pat 0)) ; anchored: starts with "^"
                      ;; but does not allow an arbitrary number of leading spaces
-                     (not (and (= ?  (aref pat 1)) (= ?* (aref pat 1)))))
+                     (not (and (= ?  (aref pat 1)) (= ?* (aref pat 2)))))
             (setq pat (concat "^ *" (substring pat 1))))
 	  (if (consp file)	(setq fmt (cdr file)	  file (car file)))
 	  (if (consp line)	(setq end-line (cdr line) line (car line)))