Commit 477feba7 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

(c-mask-comment): Fixed bug where point was moved to the following line when

it was at the first line of a block comment where comment-start-skip matched
to eol.
parent fda3de70
......@@ -2900,7 +2900,8 @@ command to conveniently insert and align the necessary backslashes."
;; The region includes the comment starter.
(save-excursion
(goto-char (car c-lit-limits))
(if (looking-at (concat "\\(" comment-start-skip "\\)$"))
(if (and (looking-at (concat "\\(" comment-start-skip "\\)$"))
(> here (match-end 0)))
;; Begin with the next line.
(setq beg (c-point 'bonl))
;; Fake the fill prefix in the first line.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment