diff options
Diffstat (limited to 'lisp/newcomment.el')
-rw-r--r-- | lisp/newcomment.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 57a52effd14..b458f0356de 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -932,7 +932,8 @@ This function is the default value of `uncomment-region-function'." (setq end (copy-marker end)) (let* ((numarg (prefix-numeric-value arg)) (ccs comment-continue) - (srei (comment-padright ccs 're)) + (srei (or (comment-padright ccs 're) + (and (stringp comment-continue) comment-continue))) (csre (comment-padright comment-start 're)) (sre (and srei (concat "^\\s-*?\\(" srei "\\)"))) spt) |