From a3ae17d490db9c7a64f5f031e0dd1f838ea46c17 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 29 Dec 2003 20:03:46 +0000 Subject: [PATCH] (sh-get-indent-info): Don't move point back if at bob. --- lisp/progmodes/sh-script.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index e63dda1c663..a23dc0a307e 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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) -- 2.39.2