diff options
Diffstat (limited to 'lisp/newcomment.el')
-rw-r--r-- | lisp/newcomment.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 7716a704359..9995b4b9156 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -480,8 +480,8 @@ Point is assumed to be just at the end of a comment." (progn (backward-char) (skip-syntax-backward " ")) (cond ((save-restriction - (beginning-of-line) - (narrow-to-region (point) end) + (narrow-to-region (line-beginning-position) (point)) + (goto-char (point-min)) (re-search-forward (concat comment-end-skip "\\'") nil t)) (goto-char (match-beginning 0))) ;; comment-end-skip not found. Maybe we're at EOB which implicitly |