diff options
author | Stefan Monnier <[email protected]> | 2002-04-12 03:05:04 +0000 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2002-04-12 03:05:04 +0000 |
commit | 2f85befdd53c467df20fc9894bb9ac612e69709e (patch) | |
tree | 46bbbf0c4a79eb5d01de5d6846668071731ef964 /lisp/progmodes | |
parent | a1906d512b4ba2b323e93dbe9fea218b587d9a92 (diff) |
(c-backward-to-start-of-if): Don't assume point-min == 1.
Diffstat (limited to 'lisp/progmodes')
-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 0a9053f04d..4f21f083fe 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[^_]") |