diff options
Diffstat (limited to 'coq/coq-indent.el')
-rw-r--r-- | coq/coq-indent.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coq/coq-indent.el b/coq/coq-indent.el index a8d94234..70191cb9 100644 --- a/coq/coq-indent.el +++ b/coq/coq-indent.el @@ -522,7 +522,9 @@ the (point-min) if there is no previous command." "Move to the start of command at point. The point is put exactly before first non comment letter of the command." (coq-find-current-start) - (forward-comment (point-max))) + (when (or (forward-comment (point-max)) + (looking-at "\\S-")) + (point))) ;; (defun same-line (pt pt2) ;; (or (= (line-number-at-pos pt) (line-number-at-pos pt2)))) |