diff options
-rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 0a9053f04d0..4f21f083fe5 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -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[^_]") |