changeset 63829:5448f90c05f7

(comment-indent-default): Don't get fooled by an early end of buffer.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 29 Jun 2005 06:44:37 +0000
parents 8c653abf3d8b
children 73629b5f7093
files lisp/newcomment.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/newcomment.el	Wed Jun 29 02:16:08 2005 +0000
+++ b/lisp/newcomment.el	Wed Jun 29 06:44:37 2005 +0000
@@ -502,7 +502,7 @@
 	   (or (match-end 1) (/= (current-column) (current-indentation))))
       0
     (when (or (/= (current-column) (current-indentation))
-	      (and (> comment-add 0) (looking-at "\\s<\\S<")))
+	      (and (> comment-add 0) (looking-at "\\s<\\(\\S<\\|\\'\\)")))
       comment-column)))
 
 ;;;###autoload