diff options
Diffstat (limited to 'coq/coq-indent.el')
-rw-r--r-- | coq/coq-indent.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coq/coq-indent.el b/coq/coq-indent.el index 916dbc7e..64a36dc2 100644 --- a/coq/coq-indent.el +++ b/coq/coq-indent.el @@ -267,7 +267,7 @@ The point is put exactly before first non comment letter of the command." (save-excursion (let ((st (coq-find-real-start)) ; va chercher trop loin? (nd (or (coq-find-command-end-forward) (- (point-max) 1)))) ; idem? - (buffer-substring st (+ nd 1))))) + (if st (buffer-substring st (+ nd 1)))))) (defun coq-indent-only-spaces-on-line () "Non-nil if there only spaces (or nothing) on the current line after point. |