]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-backward-to-start-of-if): Don't assume point-min == 1.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2002 03:05:04 +0000 (03:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2002 03:05:04 +0000 (03:05 +0000)
lisp/progmodes/cc-engine.el

index 0a9053f04d01f6d5044cf1aeba6b48de88616474..4f21f083fe5f4fa9385abfa66ee0ac494e50e804 100644 (file)
@@ -963,7 +963,7 @@ brace."
             (c-beginning-of-statement-1)
             (setq c-parsing-error
                   (format "No matching `if' found for `else' on line %d"
-                          (1+ (count-lines 1 here))))
+                          (1+ (count-lines (point-min) here))))
             (throw 'orphan-if nil))))
        (cond
         ((looking-at "else\\b[^_]")