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."
(interactive)
(let ((previous (save-excursion
(while (progn
(line-move -1)
(back-to-indentation)
(or (eolp)
(eq (following-char) ?#))))
(while (and (not (bobp))
(progn
(forward-line -1)
(back-to-indentation)
(or (eolp)
(eq (following-char) ?#)))))
(current-column)))
current)
(save-excursion
......
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