]> granicus.if.org Git - python/commitdiff
Guard advancing past leading meta-comments.
authorKen Manheimer <klm@digicool.com>
Mon, 3 Mar 2003 04:05:03 +0000 (04:05 +0000)
committerKen Manheimer <klm@digicool.com>
Mon, 3 Mar 2003 04:05:03 +0000 (04:05 +0000)
Misc/python-mode.el

index 13070421bbcf5c0b6e39f60be120003cfefad5e1..c8423f1e5730e822dfa3f0fa1a33d3439da17be3 100644 (file)
@@ -1360,10 +1360,12 @@ problem as best as we can determine."
                             (set-buffer funcbuffer)
                             (count-lines
                              (point-min)
-                             (string-match "^\\([^#]\\|#[^#]\\|#$\\)"
-                                           (buffer-substring (point-min)
-                                                             (point-max)
-                                                             funcbuffer)))))))
+                             (max (point-min)
+                                  (string-match "^\\([^#]\\|#[^#]\\|#$\\)"
+                                                (buffer-substring (point-min)
+                                                                  (point-max)
+                                                                  funcbuffer))
+                                  ))))))
              (list lineno funcbuffer))
 
             ((= (elt filename 0) ?\<)