changeset 44510:4733cde26cbb

(c-backward-to-start-of-if): Don't assume point-min == 1.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 12 Apr 2002 03:05:04 +0000
parents 92316652b440
children 5c5bc6fd4eb8
files lisp/progmodes/cc-engine.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-engine.el	Fri Apr 12 03:03:26 2002 +0000
+++ b/lisp/progmodes/cc-engine.el	Fri Apr 12 03:05:04 2002 +0000
@@ -963,7 +963,7 @@
 	     (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[^_]")