]> gitweb.michael.orlitzky.com - nagios-mode.git/blobdiff - nagios-mode.el
Fixed a bug in first-char-offset affecting indentation.
[nagios-mode.git] / nagios-mode.el
index 3e869461782acc820a132be3b7446bbf7b428072..90cd09f779c22f0e09b6f00709187a3edc223479 100644 (file)
@@ -68,7 +68,8 @@
   ;; How far is the first character on this line
   ;; from the beginning of the line?
   (save-excursion
-    (+ (pos-offset) (skip-chars-forward " \t"))
+    (beginning-of-line)
+    (skip-chars-forward " \t")
   )
 )
 
@@ -79,7 +80,6 @@
 
 (defun nagios-indent-to(indent-column)
   "Indent the current line to column indent-column."
-
   ;; Store the point in orig-pos.
   (let ((orig-point (point)))