]> git.eshelyaron.com Git - emacs.git/commitdiff
Stefan Monnier <monnier at iro.umontreal.ca>
authorGlenn Morris <rgm@gnu.org>
Sat, 28 Apr 2007 20:39:11 +0000 (20:39 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 28 Apr 2007 20:39:11 +0000 (20:39 +0000)
(c-before-change): Use point-min rather than 1.

lisp/progmodes/cc-mode.el

index c3c17a6f3c528e12caa472693dc63e0f7d9a9331..390d49eaea41998b182cc4ed8bdf1ac4440c56e9 100644 (file)
@@ -522,7 +522,7 @@ preferably use the `c-mode-menu' language constant directly."
            (setq lim (max (point-min) (1- (point))))
 
            ;; Look for the latest `c-type' property before end1
-           (when (and (> end1 1)
+           (when (and (> end1 (point-min))
                       (setq type-pos
                             (if (get-text-property (1- end1) 'c-type)
                                 end1