Commit b46c06de authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sh-indent-line): Cope if no previous noncomment line.

parent 9b30450e
......@@ -849,11 +849,12 @@ in ALIST."
Lines containing only comments are considered empty."
(let ((previous (save-excursion
(while (progn
(line-move -1)
(or (eolp)
(eq (following-char) ?#))))
(while (and (not (bobp))
(forward-line -1)
(or (eolp)
(eq (following-char) ?#)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment