]> gitweb.michael.orlitzky.com - nagios-mode.git/commitdiff
Fix the brace-on-line function.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2010 03:44:37 +0000 (23:44 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2010 03:44:37 +0000 (23:44 -0400)
nagios-mode.el

index 8482abee94e397159ff728546d5a8d9c39d52d84..377400172a2cf08b2123314612205d95d2a52be1 100644 (file)
 (defun brace-on-line()
   ;; Is there a curly brace on this line?
   (save-excursion
 (defun brace-on-line()
   ;; Is there a curly brace on this line?
   (save-excursion
+    (beginning-of-line)
     (re-search-forward "[{}]" (end-of-line-pos) t)
   )
 )
 
     (re-search-forward "[{}]" (end-of-line-pos) t)
   )
 )
 
+
 (defun nagios-calculate-indent()
   "Calculate the level of indentation."
 
 (defun nagios-calculate-indent()
   "Calculate the level of indentation."