(sh-get-indent-info):
authorRichard M. Stallman <rms@gnu.org>
Mon, 29 Dec 2003 20:03:46 +0000 (20:03 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 29 Dec 2003 20:03:46 +0000 (20:03 +0000)
Don't move point back if at bob.

lisp/progmodes/sh-script.el

index e63dda1..a23dc0a 100644 (file)
@@ -2052,7 +2052,8 @@ STRING         This is ignored for the purposes of calculating
                    (progn
                      (setq result (append result val))
                      (setq align-point (point))))
-               (forward-char -1)
+               (or (bobp)
+                   (forward-char -1))
                (skip-chars-forward "[a-z0-9]*?")
                )
               ((string-match "[])}]" x)