aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stjernholm <[email protected]>2002-04-22 22:35:45 +0000
committerMartin Stjernholm <[email protected]>2002-04-22 22:35:45 +0000
commit477feba7985e30a1d54be7ac61ec26f683a31448 (patch)
tree5c84d4d491334cb96fe5cb42101a8fe3adeb658a
parentfda3de70e18b1281f685f56ecd9ec4178cbeb5f8 (diff)
(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.
-rw-r--r--lisp/progmodes/cc-cmds.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index d56000049d..7c63b5fc7b 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -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.